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

Memory leak in Switchyard -> Drools invocation

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • None
    • jboss-fuse-6.3
    • None
    • % %
    • Hide

      1. 'Fuse 6.3.0 + Int Pack fuse-integration-eap-full-1.7.0.redhat-630013-installer.zip'

      2. Deploy the 'switchyard-rules-interview' quickstart

      3. Execute the quickstart in a loop:

      #!/bin/bash
      for i in {1..5000}
      do
         echo "Sending request $i"
         cp src/test/resources/xml/soap-request-pass.xml request.xml
         sed -i "s/_AGE_/${i}/g" request.xml
         curl --header "Content-Type: text/xml;charset=UTF-8" --header "SOAPAction:verify" --data @request.xml http://localhost:8080/rules-interview/Interview
         echo ""
         sleep 0.05
      done
      
      Show
      1. 'Fuse 6.3.0 + Int Pack fuse-integration-eap-full-1.7.0.redhat-630013-installer.zip' 2. Deploy the 'switchyard-rules-interview' quickstart 3. Execute the quickstart in a loop: #!/bin/bash for i in {1..5000} do echo "Sending request $i" cp src/test/resources/xml/soap-request-pass.xml request.xml sed -i "s/_AGE_/${i}/g" request.xml curl --header "Content-Type: text/xml;charset=UTF-8" --header "SOAPAction:verify" --data @request.xml http://localhost:8080/rules-interview/Interview echo "" sleep 0.05 done

      Running a Switchyard application that uses rules component, similar to the `switchyard-rules-interview` quickstart, a memory leak can be observed:

      1. One StatefulKnowledgeSessionImpl instance for each service invocation in the org.jbpm.runtime.manager.impl.factory.InMemorySessionFactory.sessions hashmap

      2. A Large number of org.jbpm.runtime.manager.impl.RuntimeEngineImpl instances referenced by a ThreadLocal

      See the text file with the relevant heap dump extracts attached.

              tcunning@redhat.com Thomas Cunningham
              rhn-support-mputz Martin Weiler (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: