HotSpot JVM - Old Generation Garbage Collectors

In the HotSpot JVM, the old generation is where long-lived objects reside. Garbage collection in this space is generally more expensive and less frequent than in the young generation.

Many old generation collectors listed below are now deprecated or legacy. While they are useful for foundational learning, modern applications should prefer collectors like G1, ZGC, or Shenandoah, which manage both young and old generations efficiently.

Serial Old Collector

Still available but only recommended for testing, educational purposes, or very small applications.

Parallel Old Collector

Best used in combination with Parallel Scavenge for throughput-first applications.

CMS (Concurrent Mark Sweep) Collector

Deprecated Notice:
CMS was officially removed in JDK 14.
Modern applications should use G1 GC, ZGC, or Shenandoah as alternatives for low-pause requirements.

Understanding Serial, Parallel, and CMS collectors helps build a strong foundation, but when working on real-world Java systems today, it’s recommended to prioritize G1, ZGC, or Shenandoah for better performance and scalability.