If using -XX:MaxDirectMemorySize, it is possible to encounter out of memory exceptions in the following ways (there may be others not captured here): Direct buffer memory at ...
Java has allowed applications to access memory outside of the heap (in a limited way) since JDK 1.4, using DirectByteBuffer. Direct ByteBuffer default size is 64 MB ...