Garbage Collectors
Java Garbage collectors
Overview
In the Java platform, there are currently four supported garbage collection alternatives and all but one of them, the serial GC, parallelise the work to improve performance.
Shenandoah
low-latency GC
operates mostly concurrently with application
ZGC
a low-latency concurrent GC introduced in Java 11
G1 (Garbage first) GC
default GC from Java 9 onwards


Parallel GC
Uses multiple threads for minor collections
Uses single thread for major collection
ℹ️GC progress from JDK 8 to JDK 17




Last updated
Was this helpful?