Go2Linux posted a guide about finding which process is eating RAM in Linux
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.How to find which process is eating RAM in Linux
We'll use ps, awk, head and sort with a pipe, to find out which application is consuming our RAM