Skip to content
Sharp

Performance Tuning · interview question

Which tool would you use to analyze memory leaks by inspecting heap dumps?

Multiple choiceMediumchapter-14-curatedpremiumperformance-tuningthread-dumps
Choose one answer
Answer and explanation

Correct answer

A. Jmap

Why

jmap is used to generate heap dumps and analyze memory usage. It is particularly useful in diagnosing memory leaks by providing a snapshot of the heap's current state.

Test yourself on Performance Tuning

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

Start free test
All Performance Tuning questions →