Skip to content
Sharp

Performance Tuning · interview question

Which tool would you use to analyze Java heap memory allocation and identify objects consuming the most memory?

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

Correct answer

B. Jmap

Why

The 'jmap' tool is used to obtain memory statistics, including heap memory usage, and can generate heap dumps, which are essential for identifying objects that consume the most memory.

Test yourself on Performance Tuning

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

Start free test
All Performance Tuning questions →