Question

My droplet is out of memory

I have a docker image and my instance is out of memory error.

Error:

Out of memory: Killed process 2523954 (node) total-vm:1906512kB, anon-rss:1026256kB, file-rss:0kB, shmem-rss:OkB, UID:0 pgtables:4992kB oom_score_adj:0

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 @rameshbhalla81,

Do you have SWAP configured? If not I would recommend you to do so.

Swap is an area on a hard drive that has been designated as a place where the operating system can temporarily store data that it can no longer hold in RAM. Basically, this gives you the ability to increase the amount of information that your server can keep in its working “memory”, with some caveats. The swap space on the hard drive will be used mainly when there is no longer sufficient space in RAM to hold in-use application data.

You can follow this tutorial here to see how you can add it:

https://www.digitalocean.com/community/tutorials/how-to-add-swap-space-on-ubuntu-18-04

Regards, KFSys

A $5 droplet isn’t enough to host Docker apps. I upgraded to a $10 instance and these errors doesn’t show up anymore.