Passing command line options to Java [Was: Re: Heap Size Ergonomics in docker containers]

mandy chung mandy.chung at oracle.com
Thu Nov 2 17:16:47 UTC 2017



On 11/2/17 2:09 AM, Thomas Schatzl wrote:
>>> There is JAVA_TOOL_OPTIONS, which are always prepended to the java
>>> VM command line. See the description [0] for more information.
>>

You may want to check out the JDK_JAVA_OPTIONS environment variable and 
@argfile support introduced in JDK 9 java launcher [1].

Mandy

[1] 
https://docs.oracle.com/javase/9/tools/java.htm#GUID-3B1CE181-CD30-4178-9602-230B800D4FAE__USINGTHEJDK_JAVA_OPTIONSLAUNCHERENV-F3C0E3BA
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.openjdk.java.net/pipermail/hotspot-gc-dev/attachments/20171102/c2d5d3d5/attachment.html>


More information about the hotspot-gc-dev mailing list