Jump to content
  • 0

Could not reserve enough space for object heap


Question

Posted

This is a copy paste from my post in a thread on the General Tekkit SMP board here. I thought it should be here as well/instead.

To fix the following error:

Error occurred during initialization of VM

Could not reserve enough space for object heap

Could not create Java virtual machine.

Edit(right click > edit) the launch.bat so that it contains the following:

java -Xmx1G -Xms512M -jar Tekkit.jar nogui

pause

You should also think about whether you have enough RAM to be running the server.

Some other things that have come up:

The server folder name cannot include "!", this probably applies to other special characters as well.

If the server complains "too small initial heap" you most likely forgot the M on -Xms512M

Some more details.

G=Gigabyte

M=Megabyte

So Xmx specifies the maximum size of the heap. it does not limit the amount of memory tekkit will use, only the heap which is one use for memory.

Xmx should be less than total free memory, AND if you are running 32bit java it should be less than 1.5G.

If you get stack overflow errors you should increase this value

Xms specifies the initial size of the heap, its not that important in this case, ideally keep it around what the server uses right after it starts up, 512M is plenty for me, this should never really need to be changed.

Recommended Posts

  • 0
Posted

Hello, I had the same problem as in the title of the post, but your way to fix it doesn't work for me, I have the same error...

I have win7 32 bit, java 7u7 32 bit, and 4 Go RAM.

Anyone has a solution?

Thank you.

(ps: sorry for bad english i am french)

  • 0
Posted

Hey I know this is an older chain, but I've been trying to set up a Tekkit server and have been having issues. I'm trying to work through it one step at a time. Currently I am at the object heap issue. I have attempted changing the sizes listed in the batch file but it keeps giving me the same issue. I am using Jre7 and attempting to make a server for Tekkit 3.1.2. Am I altering the wrong folder perhaps? Any help would be greatly appreciated and hope all is well!

  • 0
Posted

I get the same error as most of people here do, but installing Java 7 and deleting Nether Ores didn't help at all... I have Windows 7 32-bit, Java SE 7u25 JRE and 4GB ram. Tekkit build 3.1.2 if helps. And here's the image of the error, hopefully I captured it all.

ezimba14945821073400.png

  • 0
Posted

I get the same error as most of people here do, but installing Java 7 and deleting Nether Ores didn't help at all... I have Windows 7 32-bit, Java SE 7u25 JRE and 4GB ram. Tekkit build 3.1.2 if helps. And here's the image of the error, hopefully I captured it all.

[uote]

I could be way off course with this one, but it looks to me like the space that the server is trying to allocate for the data is being taken up by another program.

  • 0
Posted

I could be way off course with this one, but it looks to me like the space that the server is trying to allocate for the data is being taken up by another program.

It could be possible, but for a noob like me... Heh. I think I need some serious instructions...

  • 0
Posted

I Have 4 G in my computer but if i type 2048M it says not enough RAM

As I said in the first post, you are using a 32bit JVM which is only able to use 1.5 Gigglybits of ram.

  • 0
Posted

This is a copy paste from my post in a thread on the General Tekkit SMP board here. I thought it should be here as well/instead.

To fix the following error:

Error occurred during initialization of VM

Could not reserve enough space for object heap

Could not create Java virtual machine.

Edit(right click > edit) the launch.bat so that it contains the following:

java -Xmx1G -Xms512M -jar Tekkit.jar nogui

pause

You should also think about whether you have enough RAM to be running the server.

Some other things that have come up:

The server folder name cannot include "!", this probably applies to other special characters as well.

If the server complains "too small initial heap" you most likely forgot the M on -Xms512M

Some more details.

G=Gigabyte

M=Megabyte

So Xmx specifies the maximum size of the heap. it does not limit the amount of memory tekkit will use, only the heap which is one use for memory.

Xmx should be less than total free memory, AND if you are running 32bit java it should be less than 1.5G.

If you get stack overflow errors you should increase this value

Xms specifies the initial size of the heap, its not that important in this case, ideally keep it around what the server uses right after it starts up, 512M is plenty for me, this should never really need to be changed.

YOU FUCKING BOSS I WAS LOOKING FOR HOURS ON HOW TO FIX IT <3

*Give that man a cookie*

  • 0
Posted

I have a PC with 16GB of RAM, why cant i use more then this --> java -Xmx1G -Xms512M -jar Tekkit.jar nogui pause? And when i play on my server it is lagging so mutch you cant really do anything.

Is there anything else that culd cause this problem?

------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

Error message: Error occurred during initialization of VM

Could not reserve enough space for object heap

Error: Could not create the Java Virtual Machine.

Error: A fatal exception has occurred. Program will exit.

And as i said my PC has 16GB RAM and 64 bit.

  • 0
Posted

I seem to be having the same problem here, but with single player instead. I'm not trying to launch a server or anything like that, the launcher just hides and un-hides with this same message

I have 4 gigs of RAM with 3.5GB allocated memory and 64-bit Windows 10

here are the logs: https://pastebin.com/RQgwPb2H

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...