Uploaded image for project: 'FUSE Mediation Router'
  1. FUSE Mediation Router
  2. MR-309

Possible memory leak in BatchSender

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Critical Critical
    • 1.6.2.1-fuse
    • None
    • None

      The attached test case simulates a condition that I believe is causing a memory leak, leading to an eventual OutOfMemory error. Just apply the patch to camel-core and do "mvn clean compile test -Dtest=AggregatorExceptionTest" to run the test. After a minute or so the test will fail, the patch updates the pom so that -XX:+HeapDumpOnOutOfMemoryError is passed to the JVM, so you'll have a heap dump created in the current working directory. You can use this tool to analyze the heap. Just click on the "Leak suspects" link, you'll see that the bulk of the heap is taken up by InstrumentationProcessor, drilling into the object hierarchy you'll see that there's an element of the LinkedList in BatchSender that's 98% of the heap. Will post a screenshot also.

            stlewis_2 Stan Lewis
            stlewis_2 Stan Lewis
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: