Friday, February 15, 2008

sort process on linux by memory/cpu usage

sort by memory usage:
ps -eo pid,ppid,rss,vsize,pcpu,pmem,cmd -ww –sort=pmem

sorty by cpu usage:
ps -eo pid,ppid,rss,vsize,pcpu,pmem,cmd -ww –sort=pcpu

No comments: