Note: This user guide is no longer maintained. For information about any updates that relate to this guide after service refresh 4, fix pack 25, see the following support document: IBM SDK, Java Technology Edition, Version 7 Release 1: Current news
-XX:MaxDirectMemorySize
This option sets a limit on the amount of memory that can be reserved for all Direct Byte Buffers.
- -XX:MaxDirectMemorySize=<size>
Where <size> is the limit on memory that can be reserved for all Direct Byte Buffers. If a value is set for this option, the sum of all Direct Byte Buffer sizes cannot exceed the limit. After the limit is reached, a new Direct Byte Buffer can be allocated only when enough old buffers are freed to provide enough space to allocate the new buffer.
By default, the JVM does not set a limit on how much memory is reserved for Direct Byte Buffers. A soft limit of 64 MB is set, which the JVM automatically expands in 32 MB chunks, as required.