Linux get top processes with high memory usage
ps -eo pmem,pcpu,vsize,pid,cmd | sort -k 1 -nr | head -30 | awk 'NR>1 {$3=int($3/(1024*1024))"M";}{ print;}'
Backing you up.
ps -eo pmem,pcpu,vsize,pid,cmd | sort -k 1 -nr | head -30 | awk 'NR>1 {$3=int($3/(1024*1024))"M";}{ print;}'