How do I identify the unix process using the maximum CPU. since i am not a power user.. will i be able to find it using ps command? Also, I login to the server using SSH client or telnet..
4 Answers
You use top
, by default it lists the most CPU hungry processes at the top. And it has a field for process ID.
-
this is easy way to get the info, than the combination of ps & other commands! Thanks– Abdel OlakaraNov 10, 2009 at 12:35
Sorted from most demanding to least demanding:
ps -arcwwwxo "command %cpu"
Just the first ten:
ps -arcwwwxo "command %cpu" | head -13