Question

Minecraft server out of memory

Dear people of the Digital Ocean community,

I bought a Digital Ocean 2 days ago. I am running a minecraft server on it, for developing of plugins. So sometimes it’s crashing, it says I have not very much Ram. I have a server with 1 GB ram,my minecraft server show this on my screen error: Click start code: Click Can a add more ram to a Java run? Greets. Tom Rusticus


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

Well, my first suggestion would be to add SWAP to your Droplet. You can see how to do that here:

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

I won’t recommend more than a GB of SWAP to be added.

Regarding priority, you can’t simply just do that, other services also require RAM so you’ll need to make there is enough for everybody so to say, otherwise your Droplet will start killing processes.

As such, try with the SWAP and if that doesn’t work, I’ll suggest upgrading to the next plan.

Thanks! it’s works

Hi,

Try adding some swap space to your droplet:

It should help prevent your server from completely running out of memory.