Java Memory Leak Patterns: Statics, Listeners, ThreadLocals
Static maps, forgotten listeners, ThreadLocals in pools, inner classes holding outer ones: the Java memory leak patterns I keep finding, with dump signatures.
Static maps, forgotten listeners, ThreadLocals in pools, inner classes holding outer ones: the Java memory leak patterns I keep finding, with dump signatures.
A Java exception with no stack trace, or one cut off at 1024 frames, isn't a logging bug. Why the JVM drops traces, how to spot it, and what to change.
java.io.IOException: Too many open files means you hit the descriptor limit. How to count FDs, find the leak with /proc and lsof, and set limits that hold.
Heap keeps climbing after every full GC? How to confirm a Java memory leak, take the right heap dumps, compare them, and walk from the leak back to the code.
Java heap space, Metaspace, GC overhead, direct buffer, native thread: every OutOfMemoryError message, the memory area behind it, and where to look first.