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

ByteBufferSlicePool allocated direct buffers should be reused

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Done
    • Icon: Major Major
    • 3.7.3.Final
    • 3.7.2.Final
    • None
    • None

      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.

            flaviarnn Flavia Rainone
            flaviarnn Flavia Rainone
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: