Interview practice question
Java process memory grows beyond heap
Backend Engineering · Language Runtimes · Experienced
Your Java service's heap usage is stable, but its total process memory keeps growing until the container is killed. How do you find the leak?
What a strong answer covers
Your AI report card counts how many of these ideas you cover.
- Native memory, not heap.
- Native Memory Tracking (NMT) diff.
- Suspects: direct buffers, threads, metaspace, JNI libs.
- Netty buffer leak detection.
- Allocator fragmentation; try jemalloc.
Practise this topic
Start without signing up. Sign in free to get an AI report card on your answer.