Garbage Collection
Core Topics
GC Algorithms
- Serial GC
- Parallel GC
- CMS (Concurrent Mark Sweep)
- G1 (Garbage-First)
- ZGC
- Shenandoah
GC Phases
Generational Hypothesis
- Young Generation (Eden, Survivor spaces)
- Old Generation
- Generational collection benefits
GC Tuning Parameters
- Heap size configuration
- GC algorithm selection
- Pause time goals
Key Internals to Understand
- Generational GC benefits
- Stop-the-world pauses
- Memory leaks in Java
- GC logging and analysis
Notes