Show top memory usage processes
Jul 31, 2012 00:00 · 69 words · 1 minute read
There are lots of tools to show memory usage per process, but the simplest command line utility is good old ‘ps’ (short for “process status”). Yes, I know - you know about this utility, but sometimes we forget how powerful this tool can be.
$>ps -A --sort -rss -o pid,comm,pmem | head -n 11
Also, total memory usage can be displayed by following way:
$>cat /proc/meminfo
or
$>free -m