Skip to content

java-memory-management

8 Posts

Too Many Open Files in Java: File Descriptor Leaks Fixed

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.

OutOfMemoryError: Direct buffer memory: Causes and Fixes

OutOfMemoryError: Direct buffer memory means off-heap buffers hit their cap while the heap looks idle. Why GC frees them too late, and the fixes that work.

Finding Java Memory Leaks with Heap Dumps, Step by Step

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.

HeapDumpOnOutOfMemoryError: Production Setup That Works

HeapDumpOnOutOfMemoryError is useless if the dump lands on a full disk or vanishes with the pod. How I set heap dumps up for production, containers included.

Java OutOfMemoryError: Every Message and What It Means

Java heap space, Metaspace, GC overhead, direct buffer, native thread: every OutOfMemoryError message, the memory area behind it, and where to look first.

ExitOnOutOfMemoryError: Why Your JVM Should Fail Fast

ExitOnOutOfMemoryError turns a half-dead JVM into a clean restart. What it catches, what it misses (threads, direct buffers), and how it ranks against CrashOn.