JDK-6474166 : Could not reserve enough space for object heap after installing SP1 on Win 2003
  • Type: Bug
  • Component: hotspot
  • Sub-Component: runtime
  • Affected Version: 5.0
  • Priority: P4
  • Status: Closed
  • Resolution: Not an Issue
  • OS: windows_2003
  • CPU: x86
  • Submitted: 2006-09-22
  • Updated: 2011-02-16
  • Resolved: 2006-10-23
Description
FULL PRODUCT VERSION :
java version "1.5.0_06"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_06-b05)
Java HotSpot(TM) Client VM (build 1.5.0_06-b05, mixed mode, sharing)

FULL OS VERSION :
Microsoft Windows [Version 5.2.3790]
(Windows 2003 Server SP1 32-bit)

A DESCRIPTION OF THE PROBLEM :
VM start fails with:

Error occurred during initialization of VM
Could not reserve enough space for object heap
Could not create the Java virtual machine.

after having installed SP1 on Windows 2003 Server R2.

Works without problems without SP1 installed.

Without SP1:

java -Xms512m -Xmx1024m -XX:MaxPermSize=128m -version
java version "1.5.0_06"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_06-b05)
Java HotSpot(TM) Client VM (build 1.5.0_06-b05, mixed mode, sharing)

With SP1:

java -Xms512m -Xmx1024m -XX:MaxPermSize=128m -version
Error occurred during initialization of VM
Could not reserve enough space for object heap
Could not create the Java virtual machine.

We have to reduce max heap and/or max perm in order to be able to start VM.

THE PROBLEM WAS REPRODUCIBLE WITH -Xint FLAG: Did not try

THE PROBLEM WAS REPRODUCIBLE WITH -server FLAG: Yes

STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
Do
java -Xms512m -Xmx1024m -XX:MaxPermSize=128m -version
on a machine with Windows 2003 Server R2 SP1.

EXPECTED VERSUS ACTUAL BEHAVIOR :
Should have the same behaviour as without SP1.
ERROR MESSAGES/STACK TRACES THAT OCCUR :
Error occurred during initialization of VM
Could not reserve enough space for object heap
Could not create the Java virtual machine.

REPRODUCIBILITY :
This bug can be reproduced always.

CUSTOMER SUBMITTED WORKAROUND :
Lower max heap or perm gen size

Comments
EVALUATION This is looking like a known windows bug not a JVM bug. I need to dig threw bugster to find the report for this.. I also think alot of updates have been stated in the java forums as well.. I think they need to install a patch from MS to get this addressed... Once I find the link I will add it to the bug report.. See http://forum.java.sun.com/thread.jspa?forumID=37&threadID=759413 And: http://support.microsoft.com/kb/924054
22-09-2006