Question

What is all this memory used for?

In Virtualmin I got an overview of my running processes. I thought my 2GB server was more than enough - for application I use 512M is the recommended minimum. But when I see the statistics much of those 2GB is used. What is happening? Why is Digital Ocean consuming so much itself?

Real memory: 1.97 GB total / 993.90 MB free / 726.32 MB cached

1597 root 835.54 MB /usr/lib/snapd/snapd 1743 nobody 775.73 MB /opt/digitalocean/bin/do-agent -log_syslog 1621 clamav 598.76 MB /usr/sbin/clamd --foreground=true 1789 mysql 556.29 MB /usr/sbin/mysqld 1250 www-data 229.91 MB /usr/sbin/apache2 -k start 1251 www-data 229.80 MB /usr/sbin/apache2 -k start

Show comments

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 suspect those values are virtual memory usage not the actual memory being used right now. The difference is that, for example, the 835MB snapd is using includes the shared libraries, plus memory that’s been swapped out, and unused memory. You’ll need to run top like this from the command line to figure out the exact memory usage:

top -oRES -b -n1 |grep 'snapd\|do_agent\|clamd\|mysqld\|apache2'

Thank you for your answer. That explains a lot. It leaves one question: why is Digital Ocean using so much?

Try DigitalOcean for free

Click below to sign up and get $200 of credit to try our products over 60 days!

Sign up

Become a contributor for community

Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.

DigitalOcean Documentation

Full documentation for every DigitalOcean product.

Resources for startups and SMBs

The Wave has everything you need to know about building a business, from raising funding to marketing your product.

Get our newsletter

Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.

New accounts only. By submitting your email you agree to our Privacy Policy

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Get started for free

Sign up and get $200 in credit for your first 60 days with DigitalOcean.*

*This promotional offer applies to new accounts only.