ZGC memory mappings increasing due to ZUnmapper thread starvation under heavy load
Issue
- When running with JDK11 and G1GC, the JVM creates ~4000 maps. However, when running the exact same load with JDK17 & ZGC the JVM creates tens of millions of memory maps, requiring increasing the
max_map_countkernel parameter.
Environment
- OpenJDK ZGC
- Linux
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.