Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8147468 (bf) Allow users to bound the size of buffers cached in the per-thread buffer caches
  3. JDK-8175230

Release Note: Ability to limit the capacity of buffers that can be held in the temporary buffer cache

    Details

    • Subcomponent:
    • Verification:
      Verified

      Backports

        Description

        The system property `jdk.nio.maxCachedBufferSize` has been introduced in <version> to limit the memory used by the "temporary buffer cache". The temporary buffer cache is a per-thread cache of direct memory used by the NIO implementation to support applications that do I/O with buffers backed by arrays in the java heap. The value of the property is the maximum capacity of a direct buffer that can be cached. If the property is not set then no limit is put on the size of buffers that are cached. Applications with certain patterns of I/O usage may benefit from using this property. In particular if an application does I/O with large multi-megabyte buffers at startup but therefore does I/O with small buffers may see a benefit to using this property. Applications that do I/O using direct buffers will not see any benefit to using this system property.

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  alanb Alan Bateman
                  Reporter:
                  alanb Alan Bateman
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  1 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved: