Q&A
Q&AHow do you investigate high garbage-collection pauses in production?
Correlate GC logs, allocation rate, live-set size, pause phases, and user latency before tuning.
Read the concise answer
Enable and inspect unified GC logs for pause duration, cause, heap before/after, promotion, and allocation behavior. Correlate with request latency and container memory. A large live set, allocation bursts, humongous objects, or memory pressure can imply different fixes; tune collector flags only after identifying which resource or workload pattern drives the pauses.