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. After upgrading my droplet this issue was gone because the memory usage was only 20% but after 1,5 month the memory usage was 90% again. I did a software update with new django code via Gitlab and now the memory usage jumps back to 20%.
Does anyone know this has something to do with my droplet in general, ubuntu or usage of my docker containers so my memory is not increasing so much over time?
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!
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.
Heya,
Firstly, it’s not good whenever your droplet is at 90/95% Memory Usage at all times. That shouldn’t be the case.
As for jumping back to those number after some time, are you sure you don’t have more traffic? Has your Database gone up in space and thus making it harder for the queries to be executed?
All in all, if your traffic is getting bigger then you’ll need to adapt and upgrade with that increase. Also, you’ll need to optimize your code, application and server to handle everything better.
What I’ll recommend is for you to look into optimizing your application and your Droplet first and then maybe look if you need to update again or not.