Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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
add comment

1 Answer

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
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.