Uploaded image for project: 'JBoss Enterprise Application Platform'
  1. JBoss Enterprise Application Platform
  2. JBEAP-18312

Memory leak in OpenTracing when deployment is redeployed multiple times

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Blocker
    • 7.3.0.GA
    • 7.3.0.CD18, 7.3.0.GA.CR1, 7.3.0.GA
    • MP OpenTracing
    • None

    Description

      Customer impact: Redeploy of application will cause out of memory error crashing the server and causing unavailability of service. This will happen with default configuration (as microprofile-opentracing-smallrye is enabled/added by default)

      There seems to be a memory leak when a deployment is redeployed multiple times (100 times in our test). This is very similar to what has been described in WFLY-10991. Also first commit this started to happen is this one - JaegerTracing and Apache Thrift dependencies update. Thus I selected MP OpenTracing component for this issue.

      Test and deployment is same as is described in WFLY-10991.

      Size of the extra heap in use is about 27MB plus when compared to the initial size before multiple redeploy operations.

      I've tried to check manually via visualVM tool. Screenshot with suspicious jaegertracing instances are attached - there are much more jaegertracing class instances with new version of Jager Tracing and Apache Thrift dependencies, which is suspicious.

      Interesting thing is that when microprofile-opentracing-smallrye subsystem is removed via:

      /subsystem=microprofile-opentracing-smallrye:remove()
      

      the memory leak is still present. This is kind of confusing to me.

      Attachments

        1. JBEAP-18312-compare-heap-dumps.png
          JBEAP-18312-compare-heap-dumps.png
          240 kB
        2. JBEAP-18312-leak.png
          JBEAP-18312-leak.png
          196 kB
        3. memory-leak-bad.png
          memory-leak-bad.png
          263 kB
        4. memory-leak-good.png
          memory-leak-good.png
          252 kB

        Issue Links

          Activity

            People

              ehugonne1@redhat.com Emmanuel Hugonnet
              mnovak1@redhat.com Miroslav Novak
              Votes:
              0 Vote for this issue
              Watchers:
              10 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: