Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

I am looking for a tool to monitor 1

Status
Not open for further replies.

Flipster

MIS
Jun 25, 2001
38
US
I am looking for a tool to monitor percentage of CPU usage a process is consuming. SAR and TOP aren't quite cutting it. Any ideas?s-)
 
I need to watch cpu for an individual process regardless of whether it is in the top 15 or not. I'd like to snag some of the data and GNUplot its activity throughout the course of the day.
 
How about running this from cron every "x" minutes :-

ps -aef -o pcpu= -o pid= -o time= -o vsz= -o user= -o args= | grep process | cut -c -130 >> /var/adm/process.dat

(or some variation thereof!)

HTH Ayjaycee - the "A" in TandA

One by one, the penguins steal my sanity.
 
Thanks...can you tell me what the leading numeric fields are in the input. You have been very helpful.
 
The 1st column is %CPU(i.e. current % of CPU being used by this process).

2nd column is PID (the Process's ID number)

3rd column is TIME (the elapsed CPU time used)

4th column is VSZ (Virtual Size, in Kb, of the process)

Enjoy!

Ayjaycee - the "A" in TandA

One by one, the penguins steal my sanity.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top