-
Notifications
You must be signed in to change notification settings - Fork 1.2k
jmx_exporter report wrong TotalPhysicalmemorySize #1164
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
Comments
Java 8 incorrectly reports the memory of the container host and not the container memory m. This is a well-documented Java 8 issue when running in a container. Java 11+ correctly reports the container memory. |
But according this: https://www.baeldung.com/java-docker-jvm-heap-size , java 1.8.0.242 does support container.
|
@zhashuyu The value is being retrieved from the I believe the JVM options Can you set them and retest? |
I've try :
info
|
I've try openjdk11.0.6+10 ,still no luck. info
|
The value is retrieved from the This is a JVM issue that can't be resolved by the JMX Exporter. |
I have a java app which running in Kubernetes, and config resource limit, here,
when I deploy jmx_exporter whith java agent mode, the metrics show here,
The jmx_exporter show AvailableProcessors = 2.0 , the same size in pod resources config, but the total physical memory size = 47G (5.0475278336E10) , which is way big than pod resources config (4G).
The question is : does jmx_exporter acknowledge the existence of kubernetes pod resources config , and why cpu and memory show different result.
env:
The text was updated successfully, but these errors were encountered: