Minecraft server getting killed on 2GB RAM droplet

Posted November 10, 2013 9.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?

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.

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