Dissecting the CPU-Memory Relationship in Garbage Collection
Summary
The post argues that GC cost extends beyond pause times and introduces OpenJDK 26 telemetry to quantify explicit GC CPU overhead. It presents a measurement approach using MemoryMXBean.getTotalGcCpuTime and -Xlog:cpu, and compares GC algorithms with real-world workloads like xalan and Spring to guide heap tuning and performance decisions.