How to get top processes with highest memory usage - Rocketeers

  [ Rocketeers ](/)   

[Login](https://rocketeersapp.com) 

 On this page

 Knowledge
---------

How to get top processes with highest memory usage
==================================================

### [\#Hosting](https://rocketeersapp.com/hosting)

This command shows you which processes are eating all of your server memory.

 Published by [Mark van Eijk](https://rocketeersapp.com/author/mark-van-eijk) on August 12, 2022 · 1 minute read

Run this command to show the top 10 processes that are using the most memory (RAM) on your server:

 ```
ps -eo cmd,%mem --sort=-%mem | head -n 11

```

For CPU rather than memory, see [top processes by CPU](/top-processes-cpu). To check total available memory first, see [how much RAM your server has](/how-much-memory-on-ubuntu), and consider [adding swap space](/add-swap-space-on-ubuntu) if it's tight.

### Subscribe to our newsletter

Do you want to receive regular updates with fresh and exclusive content to learn more about web development, hosting, security and performance? Subscribe now!

  Fill in your email address to receive updates  Subscribe 

#### More in [\#Hosting](https://rocketeersapp.com/hosting)

- [How to get top processes with highest CPU usage](https://rocketeersapp.com/top-processes-cpu)
- [How to add Swap Space on Ubuntu servers](https://rocketeersapp.com/add-swap-space-on-ubuntu)
- [Disable unnecessary and unused PHP versions (FPM pools)](https://rocketeersapp.com/disable-unused-php-fpm-pools)
- [Reclaim disk space on Ubuntu server](https://rocketeersapp.com/reclaim-diskspace-on-ubuntu)
- [How to check Ubuntu version](https://rocketeersapp.com/ubuntu-version)
- [Zero downtime deployments using PHP-FPM and nginx](https://rocketeersapp.com/zero-downtime-php-deployments)

 [View all 16 articles →](https://rocketeersapp.com/hosting)
