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

Memory leak in PrometheusKieServerExtension

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • None
    • 7.31.0.Final
    • kie server
    • None
    • 2020 Week 04-06 (from Jan 20)
    • Hide

      Can be reproduced on Kie server instance with Prometheus extension activated.

      Show
      Can be reproduced on Kie server instance with Prometheus extension activated.
    • NEW
    • NEW

      Prometheus Kie server extensions contains support for custom metrics [1].
      These metrics are added when a new container is called [2].
      However when container is removed then these metrics stay active. Agenda event listener has container instance as a HashMap key. This container instance is quite big, causing memory leak.

      [1] https://github.com/kiegroup/droolsjbpm-integration/blob/master/kie-server-parent/kie-server-services/kie-server-services-prometheus/src/main/java/org/kie/server/services/prometheus/PrometheusCustomMetricsSupport.java
      [2] https://github.com/kiegroup/droolsjbpm-integration/blob/master/kie-server-parent/kie-server-services/kie-server-services-prometheus/src/main/java/org/kie/server/services/prometheus/PrometheusCustomMetricsSupport.java#L78-L94

              lmolteni@redhat.com Luca Molteni
              ksuta Karel Suta
              Karel Suta Karel Suta
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

                Created:
                Updated:
                Resolved: