Uploaded image for project: 'Red Hat Fuse'
  1. Red Hat Fuse
  2. ENTESB-10090

[[UNDERTOW-1277] Clear XnioByteBufferPool.PooledByteBuffer pool when close() to avoid direct memory leaking] appears to be affecting camel-undertow

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Cannot Reproduce
    • Icon: Critical Critical
    • None
    • jboss-fuse-6.3, fuse-6.x-GA
    • Camel
    • None
    • % %
    • Hide

      The attached reproducer seems to exhibit a slow leak in direct memory. Build and run the reproducer (SpringBoot) with the following jvm flags:

      -Djava.net.preferIPv4Stack=true
      -verbose:gc 
      -Xloggc:gc_%p_%t.log 
      -XX:+PrintGCDetails 
      -XX:+PrintGCTimeStamps 
      -XX:+PrintGCApplicationStoppedTime
      -XX:NativeMemoryTracking=detail
      

      After starting, find the pid of the java process and execute:

      jcmd {PID} VM.native_memory baseline
      

      Let the application run for some hours and periodically check the increase in native memory with:

      jcmd {PID} VM.native_memory summary.diff
      
      Show
      The attached reproducer seems to exhibit a slow leak in direct memory. Build and run the reproducer (SpringBoot) with the following jvm flags: -Djava.net.preferIPv4Stack= true -verbose:gc -Xloggc:gc_%p_%t.log -XX:+PrintGCDetails -XX:+PrintGCTimeStamps -XX:+PrintGCApplicationStoppedTime -XX:NativeMemoryTracking=detail After starting, find the pid of the java process and execute: jcmd {PID} VM.native_memory baseline Let the application run for some hours and periodically check the increase in native memory with: jcmd {PID} VM.native_memory summary.diff

      Application consuming memory far in excess of reported heap usage and application / pod is getting killed.

      Heap details for the application show a number (around 400 in a smallish 66MB heap) of DirectByteBuffer objects kept alive by XNIO threads that seem to point to the referenced issue.

              ggrzybek Grzegorz Grzybek
              rhn-support-dhawkins Duane Hawkins
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: