Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
youngledo opened this issue Jan 20, 2025 · 1 comment

Comments

@youngledo
Copy link

youngledo commented Jan 20, 2025

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
Copy link
Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants