Use this command to list Linux processes according to their memory usage in descending order (via Linux Questions):

ps -e -orss=,args= | sort -b -k1,1nr | pr -TW$COLUMNS

The output will look something like this:

181300 /usr/sbin/clamd
64144 amavisd (ch9-avail)
63256 amavisd (ch11-avail)
22196 /usr/sbin/apache2 -k start
21856 /usr/sbin/apache2 -k start
21280 /usr/sbin/apache2 -k start
...
...

Posted by Jeff Reifman

Jeff is a technology consultant based in the Pacific Northwest.

Leave a reply

Your email address will not be published. Required fields are marked *