Could not reserve enough space for 2097152KB object heap
Today, I tried to start up the Minecraft server for my kids. I had already set it all up in a script, which I can just double-click to start. But the Minecraft server didn't start. Instead, I got the following Java error message:
Error occurred during initialization of VM
Strange, indeed. Why does the Minecraft server run last week, but not this week? My now, I have already performed "Optimizing Minecraft on a Notebook Computer. By optimizing, I give the Minecraft server 1GB of RAM to start and let it grow up to 2GB of RAM. This optimization has worked wonderfully on the Minecraft server average tick. I'm not about ready to give it up.
Typing "java -version" revealed the following output:
java version "1.8.0_31"
Hmmm. I didn't remember installing Java 1.8. So I ran "Which" on "java"...
That was just great. Oracle had installed JRE 1.8 behind my back and it had the guts to put its PATH in front of my JDK 1.6 installation. What a sneaky thing to do.
After changing my script to explicitly call out JDK 1.6, Minecraft server runs just fine. But that doesn't explain why Oracle's JRE 1.8 couldn't allocate the same 2GB of RAM that JDK 1.6 could. The notebook computer I'm running on has 4 GB of RAM total. 2GB of RAM allocation should not be a problem, as JDK 1.6 shows.
Did your message disappear? Read the Forums FAQ.
Spam Control | * indicates required field
TrackBack only accepted from WebSite-X Suite web sites. Do not submit TrackBacks from other sites.
No TrackBacks yet. TrackBack can be used to link this thread to your weblog, or link your weblog to this thread. In addition, TrackBack can be used as a form of remote commenting. Rather than posting the comment directly on this thread, you can posts it on your own weblog. Then have your weblog sends a TrackBack ping to the TrackBack URL, so that your post would show up here.
Messages, files, and images copyright by respective owners.
41 Users Online
Copyright © 2004 - 2018. All Rights Reserved.