JDK-8345611 : Release Note: Memory Used by Internal Temporary Direct Buffers Is No Longer Limited
  • Type: Sub-task
  • Component: core-libs
  • Sub-Component: java.nio
  • Affected Version: 24
  • Priority: P4
  • Status: Resolved
  • Resolution: Delivered
  • Submitted: 2024-12-05
  • Updated: 2025-02-07
  • Resolved: 2024-12-05
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 24
24Resolved
Description
The Java Virtual Machine (JVM) option `MaxDirectMemorySize` controls the maximum total size of memory that may be used for direct buffers in an instance of the JVM. Its default value is the maximum size of the heap. Prior to JDK 24, the amount of memory allocated for internal, temporary direct buffers such as used, for example, when reading from or writing to a `java.nio.channels.FileChannel`, was included in this total. As of JDK 24, internal use of temporary direct buffers is no longer included in the total.