First login via SSH.
Run this command what will list all the services/processes running.
top -c
Then you just need to press
ctrl+m
What ever is at the top is using the most ram.
Also remember a program may have many processes using little bits of ram, that then add up to alot.
To see more ram info type
free -m