advancedJVM Internals & Memory397 of 436

How would you investigate unusually long GC pauses, including pauses that grow after a new release?

Tests whether you'd pull GC logs (-Xlog:gc*) to check for full GCs vs young-gen collections, correlate pause growth with a recent change in allocation rate or object retention, and consider whether the collector (G1 vs ZGC) matches the new workload's latency profile.

Ready to master this question?

Generate a complete walkthrough — background, the full answer in plain language, a working code example explained line by line, a real-world scenario, common mistakes, and how this same question gets asked in different ways.

Sign in to generate a response

Next Step

← Back to all Core Java questions