Trash Talk
summary
Overview of JVM collectors with concrete tradeoffs and numbers: G1 is the default region-based collector for mixed workloads with pause targets under 1 second and poor fit for very small heaps; Epsilon is no-op (no collection) useful for tight perf tests but causes OOM if memory is unbounded; Shenandoah gives pause times below ~10 ms and is fully concurrent; ZGC targets millisecond-scale pauses (~2 ms) and multi-terabyte heaps with ~10–20% overhead; C4 (Zing) implements C4 uses loaded value barrier and off-heap forwarding for near-pauseless reclamation.
AI-written summary · about
chapters (17)
- 0:00Introduction to Trash Talk
- 1:07Why garbage collection matters
- 2:30JVM memory structure overview
- 3:56What is garbage collection
- 5:22Tracing live objects
- 7:50Freeing and compaction
- 8:32G1 collector deep dive
- 11:20G1 pros and cons
- 13:23Epsilon no-op collector
- 15:07Shenandoah collector
- 18:21ZGC collector explained
- 21:11ZGC performance and use cases
- 21:53C4 collector and Zing JVM
- 28:13C4 vs ZGC comparison
- 29:36Choosing the right collector
- 30:39Collector selection guide
- 31:00Summary and closing remarks
