Java has allowed applications to access memory outside of the heap (in a limited way) since JDK 1.4, using **DirectByteBuffer**. Java 8 has NIO (New Input/Output), cache, channel, and selector. When ...
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 ...