Skip to content
Sharp

Performance Tuning · interview question

A checkout endpoint slows down during peak traffic, but heap usage returns close to baseline after each spike. What is the most likely JVM issue?

Multiple choiceEasychapter-14-curatedpremiumperformance-tuningallocation-churn
Choose one answer
Answer and explanation

Correct answer

C. High allocation churn is creating extra GC pressure

Why

A service can suffer from heavy temporary allocation even when steady-state heap size looks stable. Creating many short-lived objects increases GC work and CPU cost, which can raise latency under load.

Test yourself on Performance Tuning

A free test with instant, explained results. No account needed.

Start free test
All Performance Tuning questions →