Minecraft server getting killed on 2GB RAM droplet

November 10, 2013 6.1k 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
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.