Ubuntu Check Memory Usage

October 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 ...
This work is licensed under a
Creative Commons Attribution-NonCommercial 4.0 International License.