Java 8 GC Tutorials - Herong's Tutorial Examples - v1.03, by Dr. Herong Yang
Introduction of Garbage Collectors
This chapter provides tutorial notes and example codes on garbage collectors. Topics include JVM memory management summary; Introduction of Generational Garbage Collector; Young and Tenured Heap regions; Eden and Survivor spaces; Mark-Sweep-Compact algorithm; Garbage collector variations.
JVM Memory Manager - Garbage Collector
Generational Garbage Collection in HotSpot
Young Generation Collection - Minor GC
Young Generation Collectors - Serial, PS, ParNew, G1
Tenured Generation Collection - Major GC
Takeaways:
Table of Contents
Heap Memory Area and Size Control
JVM Garbage Collection Logging
►Introduction of Garbage Collectors
Serial Collector - "+XX:+UseSerialGC"
Parallel Collector - "+XX:+UseParallelGC"
Concurrent Mark-Sweep (CMS) Collector - "+XX:+UseConcMarkSweepGC"
Garbage First (G1) Collector - "+XX:+UseG1GC"
Object References and Garbage Collection
Garbage Collection Performance Test Program
Performance Tests on Serial Collector
Performance Tests on Parallel collector
Performance Tests on Concurrent collector
Performance Tests on G1 collector