Pages

Thursday, June 5, 2014

How to check which process is using more memory in linux server

1. ps -eo pmem,pcpu,vsize,pid,cmd | sort -k 1 -nr | head -5

2. use top command

then SHIFT + f button in the keyboard

Press the Letter corresponding to %MEM

Then press ENTER

3. ps aux | awk '{print $2, $4, $11}' | sort -k2rn | head -n 10

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


No comments: