Skip to content
Sharp

Memory Management · interview question

A service that creates many runtime proxies crashes with OutOfMemoryError: Metaspace. What is the most likely problem?

Multiple choiceMediumchapter-14-curatedpremiummemory-managementmetaspace
Choose one answer
Answer and explanation

Correct answer

B. Class metadata growth or a ClassLoader leak, not ordinary business objects on the heap

Why

Metaspace issues commonly come from excessive class generation or ClassLoaders that never become eligible for cleanup. They are different from heap leaks caused by retained domain objects.

Test yourself on Memory Management

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

Start free test
All Memory Management questions →