Uploaded image for project: 'Drools'
  1. Drools
  2. DROOLS-1199

Memory leak in KieScanner

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Major
    • 7.0.0.Beta1
    • 6.4.0.Final
    • core engine
    • None
    • NEW
    • NEW

    Description

      I'm not sure, but it seems there is a memory leak in KieScanner, not in scanner directly, but somewhere in plexus used internally.
      If you start KieScanner with version = LATEST, start it with interval say 1 second and sample memory with visualvm (or any other), you can watch number of instances org.eclipse.sisu.plexus.* growing over time. And they cannot be garbage collected - memory root is timer thread. This happens in drools 6.4.0, in 6.3.0 this issue was absent.
      Eventually application fails with OOM.

      As a workaround we call KieScanner#scan manually in a separate thread pool that is recreated from time to time.

      Attachments

        Issue Links

          Activity

            People

              mfusco@redhat.com Mario Fusco
              vkrot Viacheslav Krot (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              7 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: