Question:
Could not reserve enough space for the Object heap?
Jake
2012-08-12 22:18:25 UTC
This problem I've had for about 2 weeks now isn't letting up. I've re-installed java, re-installed the programs, about whatever you can think of. I know the whole reason to why it's doing this, is because I was running a tekkit server which has about 41 mods on it, including Bukkit, which is huge, and tekkit at the same time with about 2 other people on it. Which crashed the Java Virtual machine. I know this sounds pretty stupid but, My computer can barely handle that much stuff alone, so I knew that this was a bad idea, But I still went on with it, and of course, This happens.
I've literally looked EVERYWHERE for an answer and I have found NOTHING. I get this error when Running the server off of the .bat file, Error occurred during the initialization of VM Could not reserve enough space for object heap. Error has occurred, could not create the Java Virtual Machine, a fatal exception has occurred. Program will exit. This has also effected my use of the Minecraft Launcher and the Magic Launcher for Minecraft. It wasn't really bright to run a Tekkit server along with Tekkit itself on a 1g of ram. I've had a lot of people tell me to re-install java, that did nothing. I've done so much stuff and get the same result. I've tried looking for it on java, Still nothing. I have actually had a Computer expert not know how to fix this. Even though that expert isn't an expert on the Java Virtual Machine. which is why. I need a actual answer to this, other than that bullshit stuff about re-installing Java, or the program or whatever. I need something that will ACTUALLY fix this problem. I'm tired of searching and searching and searching and not finding this error. If anything that has code or some array thing in it, I want to be able to understand it because I'm not familiar with binary codes and stuff. Especially Java's Binary Code. Any response with Code or something like that in any answer must be understandable by a 14 year old who knows a little something about Technology. I also suggest that, Having helped such person, would also really help about a thousand people who have gotten this problem or will have this problem in the future. Thanks!

Jake.
Four answers:
Laurence I
2012-08-12 22:30:11 UTC
you need more RAM.



with this kind of error, you wont get anywhere re-installing stuff



it is simply a case that the VM tried to MALLOC some RAM

fro the HEAP, and the opsys said it aint got enough to do that.

Or the program has a FIXED space for placing the HEAP into like

an ARRAY of a predefined size.



So this is caused when a Program has a pre-defined internal

limit. Sometimes these pre-defined limits can be PATCHED or MODIFIED

using command line parameters.



you should check at Oracle for the actual version you have,

as ive never delved that deeply into JVM but heres a ehow article on it
2016-03-15 14:42:53 UTC
A primitive data type is like a boolean aka true or false, an integer, or a character. For example...true, false, 5, A are all primitive data types. An object is a thing capable of representing multiple properties of a certain thing. Objects are built from classes. A class is nothing more than a blueprint for an object. But anyway... String blah reserves a place in memory for that string. It is automatically intialized and holds what is called an empty string. It's the same as saying String blah = "" Notice I didn't put anything between the quotes. It is initiallized to nothing basically. Kind of hard to explain. Go ask your teacher to draw it out for you or google it like crazy. Hope that helps a little.
tippery
2016-12-27 02:41:11 UTC
Tekkit Space
Blackcompe
2012-08-12 23:53:07 UTC
Too little RAM isn't necessarily the problem. As stated, the JVM will only allocate a pre-determined amount of memory (64 MB) for your application. Here's how you change the defaults (on Windows): http://www.minecraftforum.net/topic/350344-allocating-more-memory-to-java-windows/



Try entering "-Xms512m" as the runtime parameter. Increase as needed.


This content was originally posted on Y! Answers, a Q&A website that shut down in 2021.
Loading...