I am hosted on a VPS with: Memory: 3gb Burst: 3gb OS: Cent OS 5 32 bit Java Version: I am receiving an error when I start bukkit. I have properly installed java. And I am in the correct directories. Code: java -Xms512m -Xmx2600m -jar craftbukkit.jar nogui After doing that command I get the following: Do notice the line in the above quote ""sh": java.io.IOException: error=12, Cannot allocate memory." The server will generate a world, but you can not connect to it using the MC client. Does anyone know what the problem is? Thank you for your help.
Using OpenJDK? VPS's with burst memory (OpenVZ) don't have swap, and OpenJDK hates minecraft without swap. You should try Sun Java 6 using the repositories if your not using it. Had the same issue with OpenJDK in my VPS (when I had it) and when I switched to Sun Java 6, everything was fixed. You'd have to google for sun java repositories, I have no idea what it is anymore as its been months since I fixed it.
Does this look right to you? http://wiki.centos.org/HowTos/JavaOnCentOS#head-7f6d63eb68356914e7a0acbf09d6f11df48ded4b If i try: It says: EDIT: I just tyred And I am still getting the error in my first post.
Wanted to post my findings.. it is because VPS don't get ANY swap space.. I get the same error unless i run "java -Xms256 -Xmx256 -jar craftbukkit.jar nogui" I submitted a support ticket for this issue because my server runs and I can have players. Though my issue is that when I use the reload command... Everyone gets disconnected and takes 8 seconds to reload. vs using the same config on my windows desktop I have no issues at all. Also on my centos box it takes 0.78seconds to load everything vs my home desktop is only 0.2 for initial script loading.
Solved elsewhere in the forum. Upgrade to a later version of Java, as indicated in the last post here: http://forums.bukkit.org/threads/server-startup-error-12-cannot-allocate-memory-build-493.7481/