Below are some commands to get an insight in what is using your RAM.
ps -eo pid,user,comm,rss,%mem --sort=-rss | head