When you feel that your linux server is running slow, you properly run top command to check the how many memory have been used. But it just shows the overall memory usage.

To show memory usage per process, you can run this command

ps aux --sort -rss