Ubuntu Check Memory Usage

Oct 8, 2019
watch -n 5 free -h
              total        used        free      shared  buff/cache   available
Mem:           985M        759M         80M        640K        145M         89M
Swap:            0B          0B          0B

NOTE: total memory is 985M, 80M is free.

Show process with highest memory usage

ps aux --sort -rss | more
USER       PID %CPU %MEM    VSZ   RSS TTY      STAT START   TIME COMMAND
do-user  27595  3.9 18.0 982280 181856 ?       Sl   Aug30 2217:13 python ...
do-user   9782  3.2 18.0 971252 181832 ?       Sl   Sep15 1058:59 python ...

❤️ Is this article helpful?

Buy me a coffee ☕ or support my work via PayPal to keep this space 🖖 and ad-free.

Do send some 💖 to @d_luaz or share this article.

✨ By Desmond Lua

A dream boy who enjoys making apps, travelling and making youtube videos. Follow me on @d_luaz

👶 Apps I built

Travelopy - discover travel places in Malaysia, Singapore, Taiwan, Japan.