United StatesChange Country, Oracle Worldwide Web Sites Communities I am a... I want to...
Bug ID: JDK-6524727 GC ergonomics does not honor the minimum young gen size implied by a -Xms and NewRatio
JDK-6524727 : GC ergonomics does not honor the minimum young gen size implied by a -Xms and NewRatio

Details
Type:
Bug
Submit Date:
2007-02-13
Status:
Resolved
Updated Date:
2010-08-28
Project Name:
JDK
Resolved Date:
2007-05-24
Component:
hotspot
OS:
generic
Sub-Component:
gc
CPU:
generic
Priority:
P3
Resolution:
Fixed
Affected Versions:
5.0,7
Fixed Versions:
hs10 (b13)

Related Reports
Backport:
Backport:
Backport:
Backport:
Relates:
Relates:
Relates:
Relates:

Sub Tasks

Description
Using -Xms and NewRatio does not set the correct minimum size for
the young generation when GC ergonomics is being used.  The minimum size
for the young generation is still set by NewSize which has not been
adjusted for -Xms.

                                    

Comments
EVALUATION

The parallel collector uses NewSize as the minimum size of the
young generation and does not check the size implied by
-Xms and NewRatio. The fix is to check the value implied by
-Xms and NewRatio and use the larger between it and NewSize
if NewSize has not been explicitly set on the command line.

With the other collectors the minimum sizes 
and the initial sizes of the  generations are the same
and the initial size for the young generation is correctly
set according to -Xms and NewRatio where it needs to be.
                                     
2007-02-22
SUGGESTED FIX

Added a variable (_min_heap_byte_size) to hold the
minimum size of the heap and use it to set the 
minimum size of the young generation.
                                     
2007-02-22
WORK AROUND

The minimum size of the young gen needs to be explicitly set.  The comment on
the workaround should say to set NewSize (not NewRatio).
                                     
2010-08-28
WORK AROUND

Explicitly setting NewRatio or using -Xmn does the right thing.
                                     
2007-02-13



Hardware and Software, Engineered to Work Together