Battle8111 Posted August 18, 2012 Share Posted August 18, 2012 This is the error I get when It does not work without this code structure: java -Xmx1G -Xms1G -jar Tekkit.jar nogui pause Error occurred during initialization of VM Could not reserve enough space for object heap Could not creat the java virtual machine. Press any key to continue... When I did my orginal minecraft server, I never had this issue, it runs decent on 1g or 1024M when I set it in the lanch file. I have no idea if this have to do with java, or somthing else. Please help? and also, my computer has 16 gigs of ram and a proccesor speed of 3.10 ghz, so I don't think its a hardware lack. :P Link to comment Share on other sites More sharing options...
CIRC_FREAK Posted August 19, 2012 Share Posted August 19, 2012 same problem Link to comment Share on other sites More sharing options...
Resource Inc. Posted August 19, 2012 Share Posted August 19, 2012 Have you tried -> java -Xmx2g -Xms3G -jar Tekkit.jar nogui pause Link to comment Share on other sites More sharing options...
Battle8111 Posted August 19, 2012 Author Share Posted August 19, 2012 Have you tried -> java -Xmx2g -Xms3G -jar Tekkit.jar nogui pause Yes, and that did not work. Any other ideas? :D Link to comment Share on other sites More sharing options...
Resource Inc. Posted August 19, 2012 Share Posted August 19, 2012 Yes, and that did not work. Any other ideas? sorry try this -> java -Xmx3g -Xms2G -jar Tekkit.jar nogui pause Link to comment Share on other sites More sharing options...
Battle8111 Posted August 19, 2012 Author Share Posted August 19, 2012 sorry try this -> java -Xmx3g -Xms2G -jar Tekkit.jar nogui pause That don't work either, anything above 2 on both of them, will not work. It will say its to much object heap(Or max object heap.) I think this issue might be happening with computers that use 64 bit java and just a 64 bit operating system, I hope the developers take notice of this post. Link to comment Share on other sites More sharing options...
saintnicster Posted August 19, 2012 Share Posted August 19, 2012 Make sure that you are actually using the 64bit jvm Add "java -version" to the line above your "java ... Tekkit.jar", run it, then post the results here. Link to comment Share on other sites More sharing options...
Battle8111 Posted August 20, 2012 Author Share Posted August 20, 2012 Make sure that you are actually using the 64bit jvm Add "java -version" to the line above your "java ... Tekkit.jar", run it, then post the results here. I will try that. Link to comment Share on other sites More sharing options...
Battle8111 Posted August 20, 2012 Author Share Posted August 20, 2012 This is what it gave me: C:\Users\user\Desktop\-BMS>java -version -Xmx1G -Xms1G -jar Tekkit.jar nogui java version "1.6.0_34" Java SE Runtime Environment (build 1.6.0_34-b04) Java HotSpot Client VM (build 20.9-b04, mixed mode) C:\Users\user\Desktop\-BMS>pause Press any key to continue . . . Thanls again for the help saintcster. :D Link to comment Share on other sites More sharing options...
saintnicster Posted August 20, 2012 Share Posted August 20, 2012 This is what it gave me: C:\Users\user\Desktop\-BMS>java -version -Xmx1G -Xms1G -jar Tekkit.jar nogui java version "1.6.0_34" Java SE Runtime Environment (build 1.6.0_34-b04) Java HotSpot Client VM (build 20.9-b04, mixed mode) C:\Users\user\Desktop\-BMS>pause Press any key to continue . . . Thanls again for the help saintcster. Yep, you're running the 32bit JVM. If it was the 64bit, it would actually say "Java HotSpot 64-Bit Server VM" You're going to need to point your environment variables to use the right java. That, or you can change your script to explicitly use the 64bit. It'd be something along the lines of ""C:\Program Files\Java\jre7\bin\java.exe" -Xmx3g -Xms2G -jar Tekkit.jar nogui" Link to comment Share on other sites More sharing options...
Battle8111 Posted August 20, 2012 Author Share Posted August 20, 2012 Yep, you're running the 32bit JVM. If it was the 64bit, it would actually say "Java HotSpot 64-Bit Server VM" You're going to need to point your environment variables to use the right java. That, or you can change your script to explicitly use the 64bit. It'd be something along the lines of ""C:\Program Files\Java\jre7\bin\java.exe" -Xmx3g -Xms2G -jar Tekkit.jar nogui" THANKYOU! IT worked! Could I increase it past 2 and 3 gigs now or do you think thats good enough for the server to be stable? Link to comment Share on other sites More sharing options...
saintnicster Posted August 20, 2012 Share Posted August 20, 2012 THANKYOU! IT worked! Could I increase it past 2 and 3 gigs now or do you think thats good enough for the server to be stable? Sorry, but I don't run any server stuff. This just happened to be a general java problem that I could help answer. Link to comment Share on other sites More sharing options...
Yuriy Posted August 20, 2012 Share Posted August 20, 2012 THANKYOU! IT worked! Could I increase it past 2 and 3 gigs now or do you think thats good enough for the server to be stable? With 16Gb total, you should be able to give the server more and it should run stable but unless you're hosting an end of the world gala, I wouldn't worry about it. 2-3GB should be fine for 5-10 people, at least. If you have a larger population, add allocate more. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now