lithuak
By:
lithuak

Memory leak in Ubuntu 16.04.2 x64 droplet?

June 7, 2017 328 views
DigitalOcean

Hello!

I've started droplet with Ubuntu 16.04.2 x64 and just left it there running for 6 six days.
The interesting thing is - during all those days memory consumption was increasing linearly.

Here is the screenshot of memory usage graph from my "Graphs" dashboard today:
http://imgur.com/a/yHdUs

You see, that left untouched, the standard droplet consumed at the end ~41.5% of memory o_O

The break at the end is me rebooting the droplet.

Several hours after reboot, still untouched, still eating the memory insistently:

Here is the new memory graph screenshots http://imgur.com/a/TQbue:
a) graph
b) graph with details at 12 pm
c) graph with details at ~4pm

So, it went from 14.74% up to 15.69% in nearly 4 hours.

Is it something really wrong with this base droplet image?..

1 comment
1 Answer

@lithuak

I've not ran in to any issues with just the base images, though it really depends on what you mean by left untouched.

Has anything been installed on the Droplet, software wise? Apache, PHP, MySQL, etc? Has anything be done to secure it, block ports, etc?

...

You can login to the Droplet and run top followed by pressing:

SHIFT + M
c
e

That'll sort the processes to human-readable format and allow you to take a closer look.

If nothing has been done to the server other than deploying it, it could be a memory leak, though it also could be resource usage from failed login attempts, port scans, etc. Since the IP's are public, and it's possible someone else had the IP before you, that's definitely possible.

If this happens to be a 512MB Droplet, it'll be even more noticeable since there's less RAM, thus any spike in usage is going to cause a shift in the graphs.

Have another answer? Share your knowledge.