In focus · MemoryOutOfMemoryError: Direct buffer memory, and what MaxDirectMemorySize really defaults to
The heap looks healthy, the process dies anyway. How NIO direct buffers are limited, why the default follows -Xmx, why -XX:+DisableExplicitGC makes things worse, and how to find who holds the buffers.














