JDK-8129750 : Add new secure vm args to allow using new String Deduplication feature with webstart
  • Type: Enhancement
  • Component: deploy
  • Sub-Component: webstart
  • Affected Version: 8u45
  • Priority: P3
  • Status: Resolved
  • Resolution: Duplicate
  • OS: windows_7
  • CPU: x86_64
  • Submitted: 2015-06-09
  • Updated: 2015-11-05
  • Resolved: 2015-11-05
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 9
9Resolved
Related Reports
Duplicate :  
Description
FULL PRODUCT VERSION :
java version "1.8.0_45"
Java(TM) SE Runtime Environment (build 1.8.0_45-b14)
Java HotSpot(TM) 64-Bit Server VM (build 25.45-b02, mixed mode)

ADDITIONAL OS VERSION INFORMATION :
Microsoft Windows [Version 6.1.7601]

A DESCRIPTION OF THE PROBLEM :
The current JNLP 8 spec lists the set of java-vm-args supported. This list does not include vm args necessary to enable the new String deduplication feature in Java 8u20. The missing args are:

-XX:+UseG1GC
-XX:+UseStringDeduplication
-XX:StringDeduplicationAgeThreshold
-XX:+PrintStringDeduplicationStatistics

Please add support for setting these values from the JNLP file.

STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
Set these vm args in the jnlp file and note that when the JVM run's it's not doing String deduplication

EXPECTED VERSUS ACTUAL BEHAVIOR :
EXPECTED -
String deduplication would be enabled.
ACTUAL -
We're running into out of memory errors because of the number of strings in our system and the new String deduplication feature is just what we're looking for.

REPRODUCIBILITY :
This bug can be reproduced always.

CUSTOMER SUBMITTED WORKAROUND :
Oracle could provide an alternate way to enable String deduplication other than command line options to the VM. Then we would not need to use the java-vm-args attribute.


Comments
including this fix in the fix for JDK-7024585 and closing this as a duplicate
05-11-2015

will try to bundle this request and other requests for secure vm args and property changes in JDK9 note: -XX:+UseG1GC, -XX:+UseStringDeduplication, and -XX:+PrintStringDeduplicationStatistics are atomic jvm args.but -XX:StringDeduplicationAgeThreshold will need to be a secure vm-arg prefix (to allow -XX:StringDeduplicationAgeThreshold=3 for example)
02-09-2015