United StatesChange Country, Oracle Worldwide Web Sites Communities I am a... I want to...
Bug ID: JDK-6721093 -XX:AppendRatio=N not supported
JDK-6721093 : -XX:AppendRatio=N not supported

Details
Type:
Bug
Submit Date:
2008-07-01
Status:
Closed
Updated Date:
2011-03-08
Project Name:
JDK
Resolved Date:
2011-03-08
Component:
hotspot
OS:
linux
Sub-Component:
runtime
CPU:
x86
Priority:
P2
Resolution:
Fixed
Affected Versions:
6u10
Fixed Versions:
hs14 (b03)

Related Reports
Backport:
Backport:
Relates:
Relates:

Sub Tasks

Description
FULL PRODUCT VERSION :
java version "1.6.0_10-beta"
Java(TM) SE Runtime Environment (build 1.6.0_10-beta-b25)
Java HotSpot(TM) Server VM (build 11.0-b12, mixed mode)

ADDITIONAL OS VERSION INFORMATION :
Linux host 2.6.5-7.257-smp #1 SMP Mon May 15 14:14:14 UTC 2006 x86_64 x86_64 x86_64 GNU/Linux

A DESCRIPTION OF THE PROBLEM :
Starting java VM with I get an -XX:AppendRatio=3

Unrecognized VM option 'AppendRatio=3'

On#

java version "1.6.0_06"
Java(TM) SE Runtime Environment (build 1.6.0_06-b02)
Java HotSpot(TM) Server VM (build 10.0-b22, mixed mode)

it worked.

STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
Call "java AppendRatio=3"

EXPECTED VERSUS ACTUAL BEHAVIOR :
EXPECTED -
VM starting and stays running.
ACTUAL -
VM stops with "Unrecognized VM option 'AppendRatio=3'"

ERROR MESSAGES/STACK TRACES THAT OCCUR :
Unrecognized VM option 'AppendRatio=3'

REPRODUCIBILITY :
This bug can be reproduced always.

---------- BEGIN SOURCE ----------
Not needed
---------- END SOURCE ----------

CUSTOMER SUBMITTED WORKAROUND :
Start without this option, but how about more fair monitor, that are needed by the application.

Release Regression From : 6u6
The above release value was the last known release where this 
bug was not reproducible. Since then there has been a regression.

Release Regression From : 6u6
The above release value was the last known release where this 
bug was not reproducible. Since then there has been a regression.

                                    

Comments
EVALUATION

The mechanism to ignore newly obsoleted command line flags has been expanded to be JDK-version aware so that we can ignore flags at first and deny them in later JDKs using the same VM.  I added AppendRatio to be ignored until JDK7, at which point it will be an error to use it.

If this fix needs to be backported to HSX < 14, I do not recommend using this code as it is a bit intrusive and may be risky.  Instead simply add 'AppendRatio' to the existing 'obsoleted' flags specified in arguments.cpp.
                                     
2008-07-29
EVALUATION

AppendRatio will be ignored (with a warning) in JDK6, but will still be an error to use in JDK7.
                                     
2008-07-29



Hardware and Software, Engineered to Work Together