Jump to content

Can not increase ram past 1G on bat file, but server works... Help?


Recommended Posts

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

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

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

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

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

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

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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...