Skip to content
Sharp

JVM Architecture · interview question

When analyzing a heap dump after a crash, where would you look for evidence of excessive Metaspace usage?

Multiple choiceHardchapter-14-curatedpremiumjvm-architecturemetaspace
Choose one answer
Answer and explanation

Correct answer

B. ClassLoader instances

Why

ClassLoader instances are responsible for loading classes into Metaspace. If you observe a large number of active or retained ClassLoader instances in a heap dump, it could indicate excessive Metaspace usage, potentially leading to an OutOfMemoryError.

Test yourself on JVM Architecture

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

Start free test
All JVM Architecture questions →