Skip to content
Sharp

Performance Tuning · interview question

Which tool would you use to capture a snapshot of the JVM's memory for analysis?

Multiple choiceMediumchapter-14-curatedpremiumperformance-tuningoutofmemoryerrors
Choose one answer
Answer and explanation

Correct answer

C. Jmap

Why

jmap is used to capture a heap dump which provides a snapshot of the JVM's memory. This is useful for analyzing memory leaks and understanding memory usage patterns.

Test yourself on Performance Tuning

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

Start free test
All Performance Tuning questions →