Skip to content
Sharp

Performance Tuning · interview question

What diagnostic tool can be used to analyze heap memory usage in the JVM?

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

Correct answer

C. Jmap

Why

The 'jmap' tool can be used to generate a heap dump, which provides a snapshot of the heap memory usage of the JVM. This can be useful for analyzing memory leaks and understanding how memory is being used by the application.

Test yourself on Performance Tuning

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

Start free test
All Performance Tuning questions →