Skip to content
Preptima

JVM Internals & Tuning interview questions

Class loading, memory regions, garbage collectors, and reading a heap dump or GC log.

5 questions in Java & Spring.

hard5

hardScenarioConcept

A service dies with OutOfMemoryError in production. Walk me through diagnosing it.

Read the message text first, because it names which region ran out. Then use the GC log to see whether the live set after each full collection is trending upward, which means a leak, or flat and close to the ceiling, which means the heap is simply too small. A heap dump tells you what is retaining the memory.

6 minmid, senior, staff