This question is covered here in great detail.
How do you measure the memory usage of an application or process in Linux?
From the blog articl
Three more methods to try:
ps aux --sort pmem
%MEM
ps aux | awk '{print $2, $4, $11}' | sort -k2r | head -n 15
top -a
(Extracted from here)