jib
jib copied to clipboard
After using the "JAVA_TOOL_OPTIONS" environment variable, it was found that some JVM parameters were not effective.
Environment Java 8
Description of the issue: Such as the topic
Expected behavior: Can correctly recognize the parameter '- XX: NatureMemoreTracking=detail'
Steps to reproduce:
- using the "JAVA_TOOL_OPTIONS" environment variable:
JAVA_TOOL_OPTIONS: -XX:NativeMemoryTracking=detail -XX:+UnlockDiagnosticVMOptions -XX:+PrintNMTStatistics
- Execute command: jcmd 63850 VM.native_memory
Picked up JAVA_TOOL_OPTIONS: -XX:NativeMemoryTracking=detail -XX:+UnlockDiagnosticVMOptions -
XX:+PrintNMTStatistics
OpenJDK 64-Bit Server VM warning: PrintNMTStatistics is disabled, because native memory tracking is not enabled
63850:
Native memory tracking is not enabled
After verification, it seems to be a bug in Java 8, Java 17 is normal.
Can you please report this to the JDK?
Given the comment above confirming this is a JDK-related issue, we are closing this issue. Please feel free to reopen this if this is related to Jib.