Z Garbage Collector (ZGC)

ZGC, or Z Garbage Collector, is a modern garbage collection algorithm introduced in Java 11. It was designed to handle very large heap sizes with extremely low pause times. ZGC aims to keep pause times under 10 milliseconds, even with heaps sized in terabytes. For beginners, ZGC might sound complicated, but this article breaks it … Read more

G1 Garbage Collector (G1GC)

The G1 Garbage Collector (G1GC) is one of the most advanced garbage collection algorithms in the Java Virtual Machine (JVM). It is also called Garbage-First Garbage Collector. It was designed to handle large heap sizes and to meet the needs of modern Java applications. Introduced in Java 7 as an experimental feature and made default … Read more

Parallel Garbage Collector (GC)

The Parallel Garbage Collector (GC) or Throughput Collector is the default garbage collector used by JVM. The parallel garbage collector works the same as the serial garbage collector. The only difference between serial and parallel garbage collectors is that serial garbage collector uses a single thread for the garbage collection process while parallel garbage collector uses multiple threads for … Read more

Serial Garbage Collector (GC)

Serial Garbage Collector or Serial GC is the most basic garbage collection (GC) algorithm used in Java. It works in a single-threaded way, meaning it uses one thread to perform all garbage collection tasks. During a GC event, your application pauses completely—this is called a stop-the-world pause. Although Serial GC causes these pauses, it’s still … Read more

Garbage Collection Quick Guide

Garbage Collection Quick Guide

Present you the Garbage Collection Quick Guide: Garbage Collection Basics: Garbage Collection Activities: Performance Metrics targeted by GC algorithms Type of Garbage Collector: Comparison GC Throughput Latency Memory Footprint Serial Low High Low Parallel High Medium Medium CMS Medium Medium Medium G1 High Low Medium Z High Very Low High Shenandoah High Very Low High … Read more