Uploaded image for project: 'Red Hat Process Automation Manager'
  1. Red Hat Process Automation Manager
  2. RHPAM-3737

PrometheusMetricsDroolsListener is repeatedly added to the same ksession instance

    XMLWordPrintable

Details

    • Bug
    • Status: Verified (View Workflow)
    • Major
    • Resolution: Done
    • 7.10.1.GA
    • 7.11.1.GA
    • Kie-Server
    • None
    • CR1
    • Hide

      1. Enable prometheus metrics

      <property name="org.kie.prometheus.server.ext.disabled" value="false"/>
      

      2. Call a stateless ksession with the same lookup id in kie-server multiple times.
      3. Capture a heap dump
      4. In the heap dump, look at StatelessKnowledgeSessionImpl.listeners. It contains multiple PrometheusMetricsDroolsListener instances.

      Show
      1. Enable prometheus metrics <property name= "org.kie.prometheus.server.ext.disabled" value= "false" /> 2. Call a stateless ksession with the same lookup id in kie-server multiple times. 3. Capture a heap dump 4. In the heap dump, look at StatelessKnowledgeSessionImpl.listeners. It contains multiple PrometheusMetricsDroolsListener instances.
    • 1
    • 2021 Week 22-24 (from May 31)
    • +

    Description

      DroolsKieSessionLookupHandler repeatedly adds PrometheusMetricsDroolsListener to the same ksession instance. It will cause performance degrade especially for stateless ksession. Also metric count is not reliable.

      Attachments

        Issue Links

          Activity

            People

              rhn-support-tkobayas Toshiya Kobayashi
              afanjula@redhat.com Alberto Fanjul Alonso
              Karel Suta Karel Suta
              Votes:
              1 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: