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

PrometheusMetricsDroolsListener is repeatedly added to the same ksession instance

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Major
    • 7.56.0.Final
    • 7.55.0.Final
    • kie server
    • None
    • 2021 Week 22-24 (from May 31)
    • 2
    • 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.
    • Undefined
    • NEW
    • NEW

    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

            Public project attachment banner

              context keys: [headless, issue, helper, isAsynchronousRequest, project, action, user]
              current Project key: DROOLS

              People

                rhn-support-tkobayas Toshiya Kobayashi
                rhn-support-tkobayas Toshiya Kobayashi
                Votes:
                1 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                  Created:
                  Updated:
                  Resolved: