United StatesChange Country, Oracle Worldwide Web Sites Communities I am a... I want to...
JDK-8009768 : -XX:MaxGCPauseMillis value set in control panel is ignored by javaws

Details
Type:
Bug
Submit Date:
2013-03-11
Status:
Closed
Updated Date:
2013-08-09
Project Name:
JDK
Resolved Date:
2013-04-02
Component:
deploy
OS:
Sub-Component:
webstart
CPU:
Priority:
P4
Resolution:
Fixed
Affected Versions:
7u21
Fixed Versions:
7u40 (b19)

Related Reports
Backport:
Backport:

Sub Tasks

Description
Whatever user sets in control panel, the value of the property is always = 1000 in the JVM runnins java webstart application
                                    

Comments
You already specified vm args in your jnlp file: java-vm-args="-XX:MaxGCPauseMillis=1000".
What's the behavior you expect to see? Currently, we always use vm args from .jnlp (even if it's null - I'm not sure it's correct). So, for now it always overwrites vm args that we can add in java console. 
                                     
2013-03-18
I sent a webrev for the fix is that we should check the value of "java-vm-args" (from .jnlp), and if it's null - we try to use value from "runtime parameters" (control panel).
                                     
2013-03-19
I've sent new webrev with the following fix:
-- if we have 2 args contradicting each other, we need to check if it's secure vm arg.
-- if it's secure arg - the arg from .jnlp will override one from control panel. if it's not secure - we will use the arg from control panel.



                                     
2013-03-25
Justification for deferral:
Not a regression in release.  Root cause is value is set differently in two different places, which leads to undefined behavior.  
                                     
2013-03-25
Not critical for 7u25, target to 7uX.
                                     
2013-03-27
Note that this fix introduces P2 regression (8015443) and this change has been reverted.

Also I can't reproduce initial problem with latest JDK8 (secure property in JNLP overrides the same property in JCP). If the issue still exists, please file new bug.
                                     
2013-06-03



Hardware and Software, Engineered to Work Together