Uploaded image for project: 'XNIO'
  1. XNIO
  2. XNIO-346

ByteBufferSlicePool allocated direct buffers should be reused

    Details

    • Type: Enhancement
    • Status: Resolved (View Workflow)
    • Priority: Major
    • Resolution: Done
    • Affects Version/s: 3.7.2.Final
    • Fix Version/s: 3.7.3.Final
    • Component/s: None
    • Labels:
      None

      Description

      The pool can be recreated inside WildFly at every call to reload the server. With that, direct allocated buffers are just lost but, as pointed in the Javadoc of ByteBuffer:
      "The contents of direct buffers may reside outside of the normal garbage-collected heap, and so their impact upon the memory footprint of an application might not be obvious. "

      An out of memory error can be verified by reloading the WildFly server several times after performing a cli operation, that causes direct buffers to be allocated.

        Gliffy Diagrams

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  flavia.rainone Flavia Rainone
                  Reporter:
                  flavia.rainone Flavia Rainone
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  1 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved: