Submission + - How to find which process is eating memory | Linux (go2linux.org) 1
ggarron writes: "If you are running out of RAM on your Linux system, you will want to find the culprit in order to solve the problem, either by reconfiguring the RAM-hungry application or by stopping it."
"We'll use ps, awk, head and sort with a pipe, to find out which application is consuming our RAM"
"List running processes ordered by RAM usage"
ps aux | awk '{print $2, $4, $11}' | sort -k2rn | head -n 20
"We'll use ps, awk, head and sort with a pipe, to find out which application is consuming our RAM"
"List running processes ordered by RAM usage"
ps aux | awk '{print $2, $4, $11}' | sort -k2rn | head -n 20