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