Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-5103372

(bf) Allow larger size of NIO buffer space (greater than ~2047 MB)

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Duplicate
    • Icon: P4 P4
    • None
    • 5.0
    • core-libs
    • generic, itanium
    • generic, windows_xp

      Name: rmT116609 Date: 09/16/2004


      A DESCRIPTION OF THE REQUEST :
      The total size of memory available via ByteBuffer.allocateDirect is controlled by the JVM command line parameter -XX:MaxDirectMemorySize, and in 5.0-RC on 64-bit Windows XP defaults to a value of around 900 MB. By specifying a value on the command line you can raise this space to 2047 MB. However, 2047 MB appears to be the largest value allowed, and doesn't allow allocating very large NIO buffers in the very large memroy space available to 64-bit applications.

      JUSTIFICATION :
        To allow NIO buffer sizes that are more than a tiny fraction of the available process address space.

      EXPECTED VERSUS ACTUAL BEHAVIOR :
      EXPECTED -
      Allowable NIO buffer space either unlimited or with a reasonable limit compared to amount of process address space.
      ACTUAL -
      NIO buffer space limited to 2047 MB max.
      (Incident Review ID: 310935)
      ======================================================================

            martin Martin Buchholz
            rmandalasunw Ranjith Mandala (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: