Trash Talk - Exploring the memory management in the JVM
summary
Covers concrete JVM behavior: mark‑and‑sweep, copy and compact strategies, and generational collection with Eden/survivor/old regions; lists collectors with tradeoffs — Serial for single‑core/small heaps, Parallel for throughput, CMS deprecated and removed; shows numbers and anecdotes — G1 is default since JDK9 and targets ~100–200ms pauses, while ZGC advertises max ~15ms (often <1ms) but needs very large heaps and CPU and caused ~3% perf tradeoffs at Netflix
AI-written summary · about
chapters (18)
- 0:00JVM memory management intro
- 4:32How GC works in JVM
- 8:31Precise GC phases
- 10:11Mark and sweep GC
- 12:11Mark-compact vs copy collectors
- 15:41Generational GC principles
- 20:03JVM GC overview
- 21:47Serial collector use cases
- 23:43Parallel GC for throughput
- 25:41Concurrent Mark and Sweep collector
- 28:02G1 GC regions
- 31:57Epsilon no-op GC
- 33:29Shenandoah generational
- 34:12ZGC low-latency
- 35:41Zing C4 colored pointers
- 39:35Choosing the right GC
- 41:52Tuning vs switching GC
- 43:20Summary and Q&A
related talks
47mManaging and monitoring a JVM
32mMastering JVM Memory Troubleshooting - From OutOfMemoryErrors to Leaks
36mMemory Why You Need to Care
26mThe Hitchhiker's Guide to All Things Memory in Javascript
33mMemory Profiling for Mere Mortals
34mTroubleshooting Native Memory Issues in Java Applications
45mMastering JVM Profiling: Advanced Techniques and Real-Life Case Studies
44mJVM Profiling under the Hood
