Skip to main content

ZGC

Learn ZGC (Garbage Collection, Java) with worked examples, diagrams and interview questions. Free on JavaSchoolLab.

6. Basic Concepts What is ZGC? ZGC (short for Z Garbage Collector ) is a scalable, low-latency garbage collector introduced as an experimental feature in Java 11 and made production-ready in later releases. Its headline promise is sub-millisecond pause times , even on heaps that are hundreds of gigabytes in size. Where G1 aims for a configurable, "reasonably low" pause, ZGC aims to make Stop-the-World pauses almost disappear entirely, regardless of how large the heap gets.

More lessons in Garbage Collection