ZGC memory mappings increasing due to ZUnmapper thread starvation under heavy load

Solution Verified - Updated -

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_count kernel parameter.

Environment

  • OpenJDK ZGC
  • Linux

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content