Skip to content
Sharp

Performance Tuning · interview question

Which tool would you use to generate a heap dump in a running JVM?

Multiple choiceEasychapter-14-curatedpremiumperformance-tuningstop-the-world-pauses
Choose one answer
Answer and explanation

Correct answer

A. Jmap

Why

The jmap tool is used to generate heap dumps of a running JVM. Heap dumps are snapshots of the JVM's memory at a certain point in time and can be used for detailed memory analysis.

Test yourself on Performance Tuning

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

Start free test
All Performance Tuning questions →