Long GC Pauses in Java: How to Find the Real Cause
Long GC pauses in Java often aren't the collector's fault. Tell CPU throttling, swap, evacuation failure and reference processing apart using the GC log.
Long GC pauses in Java often aren't the collector's fault. Tell CPU throttling, swap, evacuation failure and reference processing apart using the GC log.
A GC log said 11.9 ms; my app froze for 1.5 s. How a JVM safepoint works, why one thread can stall them all, and what your collector changes.
Set up java GC logs with -Xlog the right way, then read every line it prints: G1 and ZGC pause lines, phases, heap before and after, rotation, and analysers.
Minor GC vs full GC is clear. 'Major GC' isn't, and it means different things per collector. What each pause collects, what triggers it, and how to read it.
Java heap size in a container isn't what -Xmx says. How the JVM derives it from the cgroup limit, why 75% heaps still get OOMKilled, and how to budget the rest.