Tagged articles

Generational Collection

2 articles · Page 1 of 1
Java Tech Workshop
Java Tech Workshop
Oct 2, 2026 · Fundamentals

Frequent Minor GC? The Real Culprits Are Allocation Rate and Premature Promotion

This article explains why frequent Minor GC in Java applications stems from high object allocation rates or premature promotion to old generation, not heap size, and details generational collection mechanics, promotion thresholds, dynamic age judgment, and troubleshooting using jstat, GC logs, and AsyncProfiler to pinpoint allocation hotspots.

Allocation RateAsyncProfilerGC Logs
0 likes · 18 min read
Frequent Minor GC? The Real Culprits Are Allocation Rate and Premature Promotion
Tencent Cloud Developer
Tencent Cloud Developer
Aug 5, 2021 · Fundamentals

Java vs Go: A Comparative Analysis of Garbage Collection Algorithms

The article compares Java’s mature, generational garbage collector—using mark‑copy for young objects, mark‑sweep/compact for old, with sophisticated write barriers and fragmentation handling—to Go’s non‑generational, concurrent tri‑color mark‑sweep collector that relies on a span‑based memory pool, TCMalloc optimizations, and simpler root selection.

Garbage CollectionGenerational CollectionGo GC
0 likes · 14 min read
Java vs Go: A Comparative Analysis of Garbage Collection Algorithms