JDK-8173081 : VM no longer prints "Picked up _JAVA_OPTIONS: " message
  • Type: Bug
  • Component: hotspot
  • Sub-Component: runtime
  • Affected Version: 9
  • Priority: P2
  • Status: Closed
  • Resolution: Fixed
  • Submitted: 2017-01-19
  • Updated: 2017-07-26
  • Resolved: 2017-01-20
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 10 JDK 9
10Fixed 9 b156Fixed
Related Reports
Relates :  
Description
When _JAVA_OPTIONS environment variable is set, JDK 8 used to print a warning:
 Picked up _JAVA_OPTIONS: XXXX

JDK 9 no longer prints this message after JDK-8061999.

Options from the environment variable are added to the VM arguments silently which makes troubleshooting very hard and it's hard for users to tell what options are automatically added.
Comments
$ export _JAVA_OPTIONS="-XX:+UseSerialGC" $ java -version Picked up _JAVA_OPTIONS: -XX:+UseSerialGC java version "9-internal" Java(TM) SE Runtime Environment (build 9-internal+0-2017-01-19-234304.ddaugher.8173081forjdk9hs) Java HotSpot(TM) 64-Bit Server VM (build 9-internal+0-2017-01-19-234304.ddaugher.8173081forjdk9hs, mixed mode) $ export JAVA_TOOL_OPTIONS="-XX:-UseSerialGC" $ java -version Picked up JAVA_TOOL_OPTIONS: -XX:-UseSerialGC Picked up _JAVA_OPTIONS: -XX:+UseSerialGC java version "9-internal" Java(TM) SE Runtime Environment (build 9-internal+0-2017-01-19-234304.ddaugher.8173081forjdk9hs) Java HotSpot(TM) 64-Bit Server VM (build 9-internal+0-2017-01-19-234304.ddaugher.8173081forjdk9hs, mixed mode)
20-01-2017