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 IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

CPU and Memory Usage per process

Status
Not open for further replies.

toddyl

Technical User
Sep 26, 2005
102
US
Hi,

I have a mix of Linux and Solaris servers and have been getting CPU and Memory usage for these using the sar command.

I have been asked by Management if I can break these stats down to a per process basis as they wish to see what processes on what servers are most using the resources.

I cant seem to be able to get this info from sar.
Does anyone know a system tool that I can use to get this info -- one important point: I cant run top every 5 minutes and parse the output as these are mission critical servers and performace is vital and cannot be interfered with. I can however collect the info at the end of the day from a log or file and present this info.

Thanks,

Toddyl
 
There's no harm in running top in batch mode, the performance impact is insignificant.

Alternatively you can use ps to capture this info on a regular basis, maybe selecting additional columns such as "sz" or "rss" to make sure you get the memory information you seek by using the format specifiers.

Annihilannic.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top