jib icon indicating copy to clipboard operation
jib copied to clipboard

After using the "JAVA_TOOL_OPTIONS" environment variable, it was found that some JVM parameters were not effective.

Open youngledo opened this issue 11 months ago • 1 comments

Environment Java 8

Description of the issue: Such as the topic

Expected behavior: Can correctly recognize the parameter '- XX: NatureMemoreTracking=detail'

Steps to reproduce:

  1. using the "JAVA_TOOL_OPTIONS" environment variable:
JAVA_TOOL_OPTIONS: -XX:NativeMemoryTracking=detail -XX:+UnlockDiagnosticVMOptions -XX:+PrintNMTStatistics
  1. 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

youngledo avatar Jan 20 '25 07:01 youngledo

After verification, it seems to be a bug in Java 8, Java 17 is normal.

youngledo avatar Jan 20 '25 08:01 youngledo

Can you please report this to the JDK?

youngledo avatar Jul 30 '25 09:07 youngledo

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.

diegomarquezp avatar Sep 11 '25 18:09 diegomarquezp