Skip to Main Content

Java HotSpot Virtual Machine

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

-XX:NativeMemoryTracking=... not picked up from neither JAVA_TOOL_OPTIONS nor _JAVA_OPTIONS

user609709Jan 3 2017 — edited Jan 3 2017

I want to use -XX:NativeMemoryTracking=... but setting it in one of the environment variables JAVA_TOOL_OPTIONS or _JAVA_OPTIONS

has no effect despite the fact that it shows up as Picked up JAVA_TOOL_OPTIONS ... resp. Picked up _JAVA_OPTIONS ... on stderr when starting my application.

If I use the flag -XX:+PrintFlagsInitial I can even see the intended value reported.

On the contrary flags like -Xms... or -Xmx... can be set via these env vars.

There is already a stackoverflow thread on this topic: http://stackoverflow.com/questions/41430629/xxnativememorytracking-not-picked-up-from-java-options.

Maybe this is a bug in flag parsing or there is an explanation why some flags cannot be picked up from these env vars.

Thanks in advance

Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jan 31 2017
Added on Jan 3 2017
0 comments
955 views