Friday, February 17, 2017

get list of memory consuming processes

the below two commands will provide you the processes which are consuming maximum memory on Linux machine.

#ps -A --sort -rss -o comm,pmem | head -10
#ps axu | awk '{print $2, $3, $4, $11}' | head -1 && ps axu | awk '{print $2, $3, $4, $11}' | sort -k3 -nr |head -10
Share:

0 comments:

Post a Comment

Copyright © playbook | Powered by Blogger

Design by Anders Norén | Blogger Theme by NewBloggerThemes.com