Question

Minecraft server getting killed on 2GB RAM droplet

  • Posted November 10, 2013

I have a droplet with the 2GB ram configuration. I installed a Vanilla Minecraft server, I hopped on (just me on it), and the server crashes after 30 seconds. There is no crash log, except for “Killed”. This is the command I use to start the server on the screen:

java -Xmx1024M -Xms1024M -jar mcserver.jar nogui

This is the standard 1.7.2 Minecraft.

Anybody knows what’s going on?

Subscribe
Share

Submit an 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.

Hi @me184910,

The killed command means your Droplet killed the process because the Droplet didn’t have enough RAM to keep the services active. It’s called an OOM killer, out of memory.

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.

@gagnon, how much swap space did you allocate? I’m going through the same issue right now and I’m curious what we’ve all been trying that doesn’t work.

Forgot to mention that I have plenty of swap space available… Other than high CPU usage, RAM is fine and swap usage is barely nonexistent. I think DigitalOcean is killing it because it’s using too much CPU

I have the same exact issue…

Try adding just a little bit of swap so that minecraft doesn’t crash while not affecting your system’s performance: <br> <br><a href=“https://www.digitalocean.com/community/articles/how-to-add-swap-on-ubuntu-12-04”>https://www.digitalocean.com/community/articles/how-to-add-swap-on-ubuntu-12-04</a> <br> <br>Replace <code>count=512k</code> with <code>count=128k</code>.