Link to home
Create AccountLog in
Avatar of newtontech4
newtontech4

asked on

How can I get the CPU utilization for a single process?

How can I get the CPU utilization for a single process?  The only way I can get the process name I need is via the following manner...ps -ef |grep  'Dweblogic.Name=the_name_of_process'|grep -v grep

How can I go from here to getting the CPU time for this process?  I would rather it report out on the command line as a single line rather than look thru a list...Thanks!
Avatar of Tintin
Tintin

The output  from ps -ef will show the total accumulated CPU time for the process.
Avatar of newtontech4

ASKER

Ok - how can I get just CPU time for the process I want in one line as opposed to a list of several processes?
ASKER CERTIFIED SOLUTION
Avatar of Tintin
Tintin

Link to home
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.
See answer
I will check... thanks!
hi -

i receive the following output...

So is the 4th col before Mar 07 the cpu time?

% ps -ef|grep 'IBM.ServiceRMd'|grep -v grep
    root 160186  49584   0   Mar 07      -  0:00 /usr/sbin/rsct/bin/IBM.ServiceRMd

thanks
rich