VisualVM shows artificial heap usage spikes during garbage collection
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 3/5
- Tiempo estimado
- 1-2 días
- Aptitud para principiantes
- 36/100
- Tipo de issue
- Error
- Claridad
- Bastante claro
- Estado de actividad
- Activo
- Stack tecnológico
- java
- Área
- observability
Línea de trabajo
VisualVM draws heap usage from the JVM's JMX memory and garbage-collector MXBeans, so start by finding the polling code behind the heap graph (the sampler/monitor module that queries java.lang:type=Memory and the ZGC collector bean) and compare what it reads with jcmd <PID> GC.heap_info. Confirm whether the mismatch comes from using committed/max values or from ZGC only publishing used after a collection, then reproduce against a ZGC JVM. Done means the graph's used value matches ZHeap used both before and after a GC.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
Describe the bug
Heap size as reported by jcmd <PID> GC.heap_info:
Before GC:
ZHeap used 12330M, capacity 29184M, max capacity 29184M
Cache 16854M (1)
size classes 16G (1)
After GC:
ZHeap used 848M, capacity 29184M, max capacity 29184M
Cache 28336M (99)
size classes 2M (37), 4M (26), 8M (12), 16M (6), 32M (8), 64M (1), 128M (3), 256M (1), 512M (1), 2G (3), 16G (1)
VisualVM:
Notice that VisualVM and the output of jcmd only seem to match after a GC is triggered. The reported value before the GC doesn't match the one reported as used ZHeap.
Expected behavior
VisualVM should display the same usage values as the reported ZHeap value. Currently this seems to only be the case after a GC run.
Desktop (please complete the following information):
- OS: Ubuntu 26.04
- JDK version 25.0.5.1
- Version 2.2.1
- Lenguaje dominante
- Java
- Estrellas
- 3.3k
- Forks
- 337
- Métricas de merge de PR
- Sin PR fusionados en 30 d
Preparar el entorno
- Sin Dockerfile ni archivo de Docker Compose
- Sin plantilla de pull request
- Leer la guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de oracle/visualvm
-
VisualVM memory leakAbiertobug
Dificultad 4/5 3-5 días Aptitud para principiantes 42/100
-
bug
Dificultad 3/5 1-2 días Aptitud para principiantes 55/100
-
Can the language be changed?Abiertoenhancement
Dificultad 5/5 Más de una semana Aptitud para principiantes 15/100
-
Tab contrast too lowAbiertobug
Dificultad 3/5 1-2 días Aptitud para principiantes 45/100
-
enhancement
Dificultad 4/5 3-5 días Aptitud para principiantes 35/100
Todos los issues de oracle/visualvm
Issues similares
-
area: language
Dificultad 2/5 1-3 horas Aptitud para principiantes 76/100
vitruv-tools/NeoJoin#432 ·
Los mantenedores suelen responder en 1 día
-
Add contributing guidePosiblemente ocupada @WadekarPrashant la tomó hoy. Abiertogood first issue
Dificultad 1/5 1-3 horas Aptitud para principiantes 88/100
jenkinsci/gitea-checks-plugin#382 · 1 comentario ·
-
enhancement infra
Dificultad 2/5 1-3 horas Aptitud para principiantes 67/100
Los mantenedores suelen responder en 1 día
-
5.0.x backport bug
Dificultad 1/5 Menos de una hora Aptitud para principiantes 68/100
spring-cloud/spring-cloud-function#1569 ·
Los mantenedores suelen responder en 1 día
-
Move the spring-cloud-commons version and BOM import from the bus parent to the stream parentPosiblemente ocupada @olegz la tomó hoy. Abiertotask
Dificultad 2/5 1-3 horas Aptitud para principiantes 74/100
spring-cloud/spring-cloud-stream#3355 ·
Los mantenedores suelen responder en 1 día