Monday, March 9, 2009

How to get CPU utilization for Unix OS?

You may use top and ps commands.

Display the process utilizing the most cpu and quits to sh: top -b -n -1

Display CPU Utilization: sar -u

And use ps to display processes with the highest CPU utilization: ps -eo pid,pcpu,args | sort +1n

Read man pages of each of the above commands to get more details and supported options.



Bookmark and Share

No comments:

A

Popular Posts (Last 30 days)

This is a personal blog and I do not speak for my employer.