The Z Garbage Collector (ZGC) - "+XX:+UseZGC"

This chapter provides tutorial notes and example codes on the Garbage First (ZGC) Collector specified by the '+XX:+UseZGC' JVM option. Topics include introduction the ZGC Collector; ZGC log message format; Stop-The-World behavior of ZGC Collector.

These sections are omitted from this Web preview version. To view the full content, see information on how to obtain the full version this book.

What Is The Z Garbage Collector (ZGC)

ZGC Log Message Format

"-XX:ParallelGCThreads=6" - ZGC Parallel Threads

"-XX:ConcGCThreads=5" - ZGC Concurrent Threads


Table of Contents

 About This Book

 Heap Memory Area and Size Control

 JVM Garbage Collection Logging

 Introduction of Garbage Collectors

 Serial Collector - "+XX:+UseSerialGC"

 Parallel Collector - "+XX:+UseParallelGC"

 Concurrent Mark-Sweep (CMS) Collector - "+XX:+UseConcMarkSweepGC"

 Garbage First (G1) Collector - "+XX:+UseG1GC"

The Z Garbage Collector (ZGC) - "+XX:+UseZGC"

 Object References and Garbage Collection

 Garbage Collection Performance Test Program

 Performance Tests on Serial Collector

 Performance Tests on Parallel collector

 Performance Tests on Concurrent collector

 Performance Tests on G1 collector

 Garbage Collection Performance Test Summary


 Full Version in PDF/EPUB