Singlegen ZGC uses more virtual memory than physical memory. We have multiple views of memory mapping to the same physical memory. If we were to report all our virtual memory to NMT, then the number would be inflated. Therefore we only report one of the views. This mostly work, but there are situations where old virtual mappings linger in the system and the NMT reported committed memory gets reported as larger than max heap size.
- clones
-
JDK-8306841 Generational ZGC: NMT reports Java heap size larger than max heap size
- Resolved