Find Out the Top 10 CPU Hogs
Date : August 29, 2007 By
I found this command useful in finding out which top 10 processes are hogging my CPU resources. Note that this command is specific to the Red Hat flavor of Linux. See the man page for ps for the correct output format to use for your specific platform:
ps -eo pcpu,pid,user,args | sort -k1 -r | head -11
pcpu above with
pmem to see the memory hogs instead.