Memory graph showing 80% but TOP command showing much less

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?

Submit an answer

This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

Sign In or Sign Up to Answer

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.

Accepted 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.

Want to learn more? Join the DigitalOcean Community!

Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.