Monitoring CPU Process Usage

Scott Bowling sbowling at bowlingkyler.com
Sun Nov 10 17:08:17 CST 2002


I've got a CGI script that I'd like to determine how much CPU usage it uses
over a period of time... let's say for a week.

To make it easier (or harder) I just want to monitor it on the user level.
I've got suexec enabled with apache and the script is running under the user
"mrfp".  After a week I'd like to be able to see how much CPU was used by
"mrfp".  (Yes.. If the mrfp user is used for some other process I expect
that cpu usage to be summarized up as well).

Is anyone aware of a utility of this nature?  I did a search on google and
didn't find anything and I wasn't sure of ps/top could monitor this...

Thanks!

Scott

Ps- It'd be great if I could pull out wall clock time as well...




More information about the Kclug mailing list