Saturday, 16 July 2011

Track Top memory and CPU consuming process

Use below mentioned command to get top memory consuming processes"

ps aux | head -1;ps aux --no-headers| sort -rn +3 | head

Use below command to get top cpu consuming processes:

ps aux | head -1;ps aux --no-headers | sort -rn +2 |more


Very important for memory usage
ps -A --sort -rss -o comm,pmem | head -n 11

0 comments:

Post a Comment