RFR  Need a way to suppress message when picking up JAVA_TOOL_OPTIONS
ivan.gerasimov at oracle.com
Thu Apr 3 12:46:06 UTC 2014
Thanks Staffan for the comments.
On 03.04.2014 16:36, Staffan Larsen wrote:
> My initial reaction is: Nooo! Please don’t add more options and special cases to the parsing of the command line and startup options.
> My slightly more polished reaction is: can you provide a good use case where this is needed? The options and the message has been around for many years and not caused too much alarm.
We've got a customer who is annoyed by this message.
They use the env variable to pass additional options to the jvm.
Currently they have to add some additional processing of the output to
scrape the stderr and get rid of this message.
> On 3 apr 2014, at 14:23, Ivan Gerasimov <ivan.gerasimov at oracle.com> wrote:
>> Hi everyone!
>> At the start time hotspot is scanning a couple of environment variables (JAVA_TOOL_OPTIONS and _JAVA_OPTIONS) and picks up the options from them.
>> If these were found, a message is printed to the stderr about what's going on.
>> Sometimes this message is not desirable and we need to have a way to turn it off.
>> May I please have a review for a simple fix which introduces another option (-XX:+SuppressJavaOptsOutput), which when specified among the other options in the env variable, will suppress the message output.
>> BUGURL: https://bugs.openjdk.java.net/browse/JDK-8039152
>> WEBREV: http://cr.openjdk.java.net/~igerasim/8039152/0/webrev/
>> Sincerely yours,
More information about the hotspot-dev