If you need to find out which processes are hogging all the RAM, run:
ps -Ao vsz,pid,args | sort -nr | head -n 20
If you need to find out which processes are hogging all the RAM, run:
ps -Ao vsz,pid,args | sort -nr | head -n 20