GearHack

: : :

Add Comment | Related Links | TrackBack
Related Content

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
Could not reserve enough space for 2097152KB object heap

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"
Java(TM) SE Runtime Environment (build 1.8.0_31-b13)
Java HotSpot(TM) Client VM (build 25.31-b07, mixed mode)

Hmmm. I didn't remember installing Java 1.8. So I ran "Which" on "java"...

C:\Users\Puppet>which java
C:\ProgramData\Oracle\Java\javapath\java.exe
C:\Program Files\Java\jdk1.6.0_15\bin\java.exe

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.

Fido
Sat, 31 Jan 2015 22:11:57 +0300

Add Comment | Related Links | TrackBack
Related Content

Did your message disappear? Read the Forums FAQ.

Add Comment

Spam Control | * indicates required field
Your Name: *
E-mail:
Remember Me!
Comment: *
File attachment is optional. Please do not attach a file to your submission unless it is relevent.
Attach File:
(20 MB Max)
Spam Protection: * Answer of 1 + 4?
Click button only once, please!

TrackBack

TrackBack only accepted from WebSite-X Suite web sites. Do not submit TrackBacks from other sites.

Send Ping | TrackBack URL | Spam Control

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.


Articles | Wiki
Forums | Latest | RSS
Library | Links | News
Search | Store | Help

185 Users Online

Hacking Digital Cameras
Fun for Photographers


Get Our

Memecoins!



Hacking Digital Cameras
Fun for Photographers

Amazon Associate

Copyright © 2004 - 2024. All Rights Reserved.