ZGC's Higher Base Memory Overhead: 15-30% More

ZGC generally incurs a 15-30% higher memory consumption compared to G1GC, primarily because it doesn't support compressed object pointers (oops) and requires additional heap headroom (20-30%) for concurrent operations. For a 16GB heap, ZGC might use around 19.4GB RSS, compared to Shenandoah's 18.2GB.

Sources

Open the full topic