Skip to content
Sharp

JVM Architecture · interview question

When tuning Metaspace, which JVM option allows setting the initial size?

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

Correct answer

D. -XX:MetaspaceSize

Why

The -XX:MetaspaceSize option sets the initial Metaspace size, helping to optimize memory allocation based on application needs and class loading patterns.

Test yourself on JVM Architecture

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

Start free test
All JVM Architecture questions →