Hello, I am running an Ubuntu server with docker on a DigitalOcean droplet. I keep getting notification from DigitalOcean my site was down for 2 minutes every couple of days. My memory is stable around 90/95 % and sometimes it almost reach the 100. Thats probaly the moment the moment the droplet is going down. At this moment there is also a huge increase in cpu (from 5 to 60 %). Does anyone know this has something to do with my droplet in general, ubuntu or usage of my docker containers?
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!
Heya @rickwagenmakers,
Your Droplet is running out of Memory and thus killing processes or just going down. Running a Droplet at 90/95% RAM all the time is not optimal at all.
You should look into upgrading your Droplet to a bigger one with more RAM and CPU.
Hey!
I would recommend starting by finding out which processes are consuming the most amount of memory, you can do that by following the steps here:
Then you can take it from there and tweak the necessary services. For example, if it is MySQL that is taking most of the memory, you could follow the steps here on how to optimize it:
But in general, if your application just needs more memory, the best thing to do would be to upgrade your Droplet.
Resizing a server changes the resources (CPU, RAM, and disk) that a server has. There are two resizing options for Droplets:
CPU and RAM only. This option lets you change the amount of CPU and RAM available to a Droplet.
Disk, CPU, and RAM. This option lets you change the amount of CPU and RAM available to a Droplet and permanently increase the size of a Droplet’s disk.
In your case, you could just add more CPU and RAM. Increasing a Droplet’s memory and CPU improves its performance and stability, especially when you are already utilizing 95% of the resources.
Hope that this helps!
- Bobby
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
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
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.