Minecraft server getting killed on 2GB RAM droplet

November 10, 2013 8.7k views
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?
4 Answers
Try adding just a little bit of swap so that minecraft doesn't crash while not affecting your system's performance:


Replace count=512k with count=128k.
by Etel Sverdlov
Linux swaps allow a system to harness more memory than was originally physically available. Here's how to set up a linux swap file on Ubuntu 12.04
I have the same exact issue...
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
@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.
Have another answer? Share your knowledge.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!