JDK-8061999 : Enhance VM option parsing to allow options to be specified in a file
  • Type: Enhancement
  • Component: hotspot
  • Sub-Component: runtime
  • Priority: P2
  • Status: Resolved
  • Resolution: Fixed
  • Submitted: 2014-10-23
  • Updated: 2025-04-01
  • Resolved: 2015-09-04
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
9 b83Fixed
Related Reports
Relates :  
Relates :  
Relates :  
Relates :  
Relates :  
Relates :  
Relates :  
Relates :  
Description
Enhance the VM Option Parsing to allow options to be specified in a file.
The existing mechanisms in the VM that support options specification
include the command line, a flags file, and environment variables. The
flags file only supports Boolean VM options like -XX:+PrintVMOptions;
the VM Options that take a value or a string are not supported.

Requests have have been submitted to enhance the existing VM Option
Parsing to allow a file to be specified that allows all VM Options to
be specified in a file.
Comments
URL: http://hg.openjdk.java.net/jdk9/jdk9/hotspot/rev/102e32f29835 User: lana Date: 2015-09-23 23:04:19 +0000
23-09-2015

URL: http://hg.openjdk.java.net/jdk9/hs-rt/hotspot/rev/102e32f29835 User: dcubed Date: 2015-09-04 23:36:54 +0000
04-09-2015

I suspect JDK-8027634 is enough to cover this issue, as we can expand the @argfile at launcher. For all tools use launcher code other than java, use -J@argfile is supported. The @argfile is expanded by launcher internally, so is not readable with ps.
18-07-2015

[~rdurbin] Please, correct your ORV1.0_The_State_of_Options_Parsing_in_the_JVM.txt. Flags file is processed first(before environment variable JAVA_TOOL_OPTIONS and etc.), thus in 2.4 and 2.5 section it must be on first place.
16-07-2015

Options file design discussion
13-07-2015