Battle8111 Posted August 18, 2012 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
Resource Inc. Posted August 19, 2012 Posted August 19, 2012 Have you tried -> java -Xmx2g -Xms3G -jar Tekkit.jar nogui pause
Battle8111 Posted August 19, 2012 Author 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
Resource Inc. Posted August 19, 2012 Posted August 19, 2012 Yes, and that did not work. Any other ideas? sorry try this -> java -Xmx3g -Xms2G -jar Tekkit.jar nogui pause
Battle8111 Posted August 19, 2012 Author 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.
saintnicster Posted August 19, 2012 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.
Battle8111 Posted August 20, 2012 Author 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.
Battle8111 Posted August 20, 2012 Author 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
saintnicster Posted August 20, 2012 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"
Battle8111 Posted August 20, 2012 Author 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?
saintnicster Posted August 20, 2012 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.
Yuriy Posted August 20, 2012 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.
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