Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I am trying to run my Minecraft server on my new host, but I keep getting this error.

Error occurred during initialization of VM
Could not reserve enough space for object heap
Error: Could not create the Java Virtual Machine.

I have the memory (over 2G).

             total       used       free     shared    buffers     cached
Mem:          2560        354       2205          0          0         51
-/+ buffers/cache:        302       2257

I am using this to launch the jar. It works when I use -Xmx1G but I am trying to use all 2G (or at least close to it).

#!/bin/sh
java -server -Xms256M -Xmx1300M -jar craftbukkit.jar -o true
share|improve this question
    
What operating system are you using? Is this a 32-bit JVM or a 64-bit JVM? – David Schwartz Mar 11 '13 at 8:45

Your system and Java VM need RAM too. You can't allocate entire RAM for Minecraft. Run it with lower Xmx or upgrade your RAM.

Anyway, 1 GB RAM server should handle at least 30 players at once.

share|improve this answer

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .