|
Home > Archive > Unix Shell > October 2007 > How to record process time
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
| Author |
How to record process time
|
|
| Bo Yang 2007-10-17, 1:28 pm |
| Hi,
I have a server with more than 2000 at web and 2000 at telnet.
Indeed, it is bbs system with web support. And the load average is
very high. Now, I want to find that how much time some CGI process
takes on average and how much in user space, how much in system space,
how much I/O it use as well as network. Is there such a tool in Unix
for this purpose? Something worth notice is that the CGI is running by
apache, and I can't trace it because it start and do some I/O and then
return. I should never pause some and trace some.
Any advice will be appreciated very much!
Thanks in advance!
Regards!
Bo
| |
| Vakayil Thobias 2007-10-18, 1:29 am |
|
"Bo Yang" <struggleyb@gmail.com> wrote in message
news:1192626658.188472.45130@t8g2000prg.googlegroups.com...
> Hi,
> I have a server with more than 2000 at web and 2000 at telnet.
> Indeed, it is bbs system with web support. And the load average is
> very high. Now, I want to find that how much time some CGI process
> takes on average and how much in user space, how much in system space,
> how much I/O it use as well as network. Is there such a tool in Unix
> for this purpose? Something worth notice is that the CGI is running by
> apache, and I can't trace it because it start and do some I/O and then
> return. I should never pause some and trace some.
>
> Any advice will be appreciated very much!
> Thanks in advance!
>
> Regards!
> Bo
>
>
For analysing the apache log, you can use webaliser tool.
http://www.mrunix.net/webalizer/
| |
| John DuBois 2007-10-18, 7:22 pm |
| In article <1192626658.188472.45130@t8g2000prg.googlegroups.com>,
Bo Yang <struggleyb@gmail.com> wrote:
>And the load average is
>very high. Now, I want to find that how much time some CGI process
>takes on average and how much in user space, how much in system space,
>how much I/O it use as well as network. Is there such a tool in Unix
>for this purpose?
If the version of UNIX you're using has a process accounting facility,
it will give you much of the information you need (once you enable it).
Start with: apropos "process accounting"
John
--
John DuBois spcecdt@armory.com KC6QKZ/AE http://www.armory.com/~spcecdt/
| |
| Bo Yang 2007-10-19, 1:32 am |
| On 10 18 , 11 58 , "Vakayil Thobias" <vakayil.thob...@alcatel-
lucent.com> wrote:
> "Bo Yang" <struggl...@gmail.com> wrote in message
>
> news:1192626658.188472.45130@t8g2000prg.googlegroups.com...
I can't find the post. Are you sure you paste a right URL?
Regards!
Bo
| |
| Bo Yang 2007-10-19, 1:32 am |
| On 10 19 , 5 26 , spce...@armory.com (John DuBois) wrote:
> In article <1192626658.188472.45...@t8g2000prg.googlegroups.com>,
> Bo Yang <struggl...@gmail.com> wrote:
>
>
> If the version of UNIX you're using has a process accounting facility,
> it will give you much of the information you need (once you enable it).
> Start with: apropos "process accounting"
I am now using sar, but it can't give me the exact time information
on
certain process. That is why I ask for some new tools here. Thanks!
Regards!
Bo
| |
| Richard James 2007-10-19, 1:32 am |
| Bo Yang wrote:
> On 10 18 , 11 58 , "Vakayil Thobias" <vakayil.thob...@alcatel-
> lucent.com> wrote:
>
> I can't find the post. Are you sure you paste a right URL?
>
> Regards!
> Bo
I just clicked on that link
http://www.mrunix.net/webalizer/
The Webalizer is a fast, free web server log file analysis program. It
produces highly detailed, easily configurable usage reports in HTML format,
for viewing with a standard web browser.
Richard James
| |
| John DuBois 2007-10-19, 1:32 pm |
| In article <1192757714.052739.174290@i38g2000prf.googlegroups.com>,
Bo Yang <struggleyb@gmail.com> wrote:
>On 10 19 , 5 26 , spce...@armory.com (John DuBois) wrote:
>
>I am now using sar, but it can't give me the exact time information
>on
>certain process. That is why I ask for some new tools here. Thanks!
Process accounting is a facility unrelated to sar.
John
--
John DuBois spcecdt@armory.com KC6QKZ/AE http://www.armory.com/~spcecdt/
|
|
|
|
|