JDK-6627787 : CMS: JVM refuses to start up with -Xms16m -Xmx16m
  • Type: Bug
  • Component: hotspot
  • Sub-Component: gc
  • Affected Version: 6u4,7
  • Priority: P3
  • Status: Closed
  • Resolution: Fixed
  • OS: generic
  • CPU: generic
  • Submitted: 2007-11-09
  • Updated: 2011-04-25
  • Resolved: 2011-04-25
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 7 Other
7Fixed hs21Fixed
Related Reports
Duplicate :  
Relates :  
Description
% /java/re/jdk/7/promoted/all/b02/binaries/solaris-sparc/bin/java -XX:+PrintCommandLineFlags -XX:+UseConcMarkSweepGC -XX:CMSYoungGenPerWorker=4m -Xms16m -Xmx16m -version

-XX:MaxHeapSize=16777216 -XX:+PrintCommandLineFlags -XX:+UseConcMarkSweepGC 
java version "1.7.0-ea"
Java(TM) SE Runtime Environment (build 1.7.0-ea-b02)
Java HotSpot(TM) Server VM (build 1.7.0-ea-b02, mixed mode)

% /java/re/jdk/7/promoted/all/b03/binaries/solaris-sparc/bin/java -XX:+PrintCommandLineFlags -XX:+UseConcMarkSweepGC -Xms16m -Xmx16m -version

-XX:MaxHeapSize=16777216 -XX:+PrintCommandLineFlags -XX:+UseConcMarkSweepGC 
Error occurred during initialization of VM
Incompatible initial and maximum heap sizes specified

But the following is a workaround of sorts:
% /java/re/jdk/7/promoted/all/b03/binaries/solaris-sparc/bin/java -XX:+PrintCommandLineFlags -XX:+UseConcMarkSweepGC -Xms16m -Xmx16m -XX:+CMSUseOldDefaults -version
-XX:+CMSUseOldDefaults -XX:MaxHeapSize=16777216 -XX:+PrintCommandLineFlags -XX:+UseConcMarkSweepGC 
java version "1.7.0-ea"
Java(TM) SE Runtime Environment (build 1.7.0-ea-b03)
Java HotSpot(TM) Server VM (build 1.7.0-ea-b03, mixed mode)

This is a regression as a result of the changes in:

6465357 CMS: default choice of NewSize can cause obscure startup failure w/small -Xms

Comments
EVALUATION http://hg.openjdk.java.net/jdk7/hotspot-comp/hotspot/rev/dde920245681
25-03-2011

EVALUATION http://hg.openjdk.java.net/jdk7/hotspot-rt/hotspot/rev/dde920245681
21-03-2011

EVALUATION http://hg.openjdk.java.net/jdk7/hotspot-gc/hotspot/rev/dde920245681
16-03-2011

EVALUATION We'll wait for the fixes to 6557851 before making the changes needed to fix this bug.
26-11-2007

EVALUATION A malinteraction between ergonomic settings in CMS and sizes explicitly set at the command-line. Problem manifests at small Xms=Xmx values and has "easy" workaround. While customers are generally unlikely to run into this issue, we should fix this at the next available opportunity (HX 11 or 12).
09-11-2007