SpinTheMic
Pro

Interview practice question

Java service has long GC pauses

Backend Engineering · Language Runtimes · Intermediate

Your Java service's latency spikes correlate with garbage collection pauses of over a second. How do you investigate and fix it?

What a strong answer covers

Your AI report card counts how many of these ideas you cover.

  • Enable and analyse GC logs.
  • Check heap sizing and allocation rate.
  • Look for promotion/old-gen pressure, humongous objects.
  • Reduce allocation; fix leaks.
  • Tune G1 or switch to ZGC.
Practise this topic

Start without signing up. Sign in free to get an AI report card on your answer.

See all topics