Linux get top processes with high memory usage

Spread the love

ps -eo pmem,pcpu,vsize,pid,cmd | sort -k 1 -nr | head -30 | awk 'NR>1 {$3=int($3/(1024*1024))"M";}{ print;}'