How to record process time
How to record process time
am 17.10.2007 15:10:58 von struggle
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
Re: How to record process time
am 18.10.2007 05:58:51 von Vakayil Thobias
"Bo Yang" 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/
Re: How to record process time
am 18.10.2007 23:26:34 von spcecdt
In article <1192626658.188472.45130@t8g2000prg.googlegroups.com>,
Bo Yang 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/
Re: How to record process time
am 19.10.2007 03:34:16 von struggle
On 10 18 , 11 58 , "Vakayil Thobias"
lucent.com> wrote:
> "Bo Yang" 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
Re: How to record process time
am 19.10.2007 03:35:14 von struggle
On 10 19 , 5 26 , spce...@armory.com (John DuBois) wrote:
> In article <1192626658.188472.45...@t8g2000prg.googlegroups.com>,
> Bo Yang 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"
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
Re: How to record process time
am 19.10.2007 05:05:14 von Richard James
Bo Yang wrote:
> On 10 18 , 11 58 , "Vakayil Thobias"
> lucent.com> wrote:
>> "Bo Yang" 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
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
Re: How to record process time
am 19.10.2007 19:00:30 von spcecdt
In article <1192757714.052739.174290@i38g2000prf.googlegroups.com>,
Bo Yang wrote:
>On 10 19 , 5 26 , spce...@armory.com (John DuBois) wrote:
>> In article <1192626658.188472.45...@t8g2000prg.googlegroups.com>,
>> Bo Yang 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"
>
>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/