Uploaded image for project: 'Red Hat Decision Manager'
  1. Red Hat Decision Manager
  2. RHDM-1206

Memory leak in PrometheusKieServerExtension

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • 7.7.0.GA
    • 7.5.1.GA
    • Kie-Server
    • None
    • CR1
    • Hide

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

      Show
      Can be reproduced on Kie server instance with Prometheus extension activated.
    • 2020 Week 04-06 (from Jan 20)

      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
              Karel Suta Karel Suta
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: