Services using 3+GB memory on a 512MB droplet

So I have VestaCP webpanel running on a 512MB droplet. Worked great for months. Now I have a new droplet, installed VestaCP the same and MYSQL is doing some funky stuff, It’s giving me an error “Connection for controluser as defined in your configuration failed” and it’s using 2GB memory while I have only 512MB. I can’t add any new databases and the existing databases are very slow. How is this possible? Also, Apache is using 1GB…

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.

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.

Hi why is using SSD’s swap as ram not recommended? We have been using the same for quite some time and didnt have any issues.

Hey there,

It sounds like you may be running on swap currently and running out of memory and swap. You can take a look at your current memory and swap usage by using the free command. Using swap is not necessarily recommended and it’s certainly not a replacement for memory. You may want to optimize your MySQL and Apache services to use less memory if possible. Regardless in your current state, it doesn’t sound like 512MB is enough memory for your configuration. You can perform a flexible resize to increase CPU and RAM resources, and you can always downgrade back to the smaller sized Droplet as long as you chose a flexible resize.

Happy coding,

Jon Schwenn Platform Support Specialist DigitalOcean