Question

Memory usage increase

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?


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.

KFSys
Site Moderator
Site Moderator badge
August 14, 2024

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.

Try DigitalOcean for free

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

Sign up

Featured on Community

Get our biweekly newsletter

Sign up for Infrastructure as a Newsletter.

Hollie's Hub for Good

Working on improving health and education, reducing inequality, and spurring economic growth? We'd like to help.

Become a contributor

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

Welcome to the developer cloud

DigitalOcean makes it simple to launch in the cloud and scale up as you grow — whether you're running one virtual machine or ten thousand.

Learn more