Memory graph showing 80% but TOP command showing much less

Posted April 6, 2020 631 views
Ubuntu 18.04

Hi! I am running a Ubuntu 18.04 on a droplet. Droplet size is 8GB memory and 160GC disk. In the graphs page on my dashboard, the “Memory” usage is at 80%. CPU shows around 0.2%, disk shows around 2%.

The droplet hosts lost traffic website. I have mysql running and a wsgi application running (production server for django application).

When I run the TOP command, memory % is nowhere near 80%. What am I not understanding? Why are the graphs not correlating with the TOP command output?

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Submit an Answer
1 answer

I believe that DO reports MemTotal - MemAvailable in the statistics. You can find these values in your system memory statistics at /proc/meminfo

MemAvailable is an estimate of memory available for applications (and does not include memory available for systems).

Your top statistics show statistics for both application and system use.