Skip to content
Sharp

Performance Tuning · interview question

What does the 'jmap' command do in the context of JVM diagnostics?

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

Correct answer

A. Generates a heap dump

Why

The jmap command is used to generate a heap dump of a Java application. This is useful for analyzing memory usage patterns and diagnosing memory leaks.

Test yourself on Performance Tuning

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

Start free test
All Performance Tuning questions →