[jboss-jira] [JBoss JIRA] (WFLY-12486) Memory leak in OpenTracing when deployment is redeployed multiple times

Miroslav Novak (Jira) issues at jboss.org
Tue Dec 17 11:05:12 EST 2019


    [ https://issues.redhat.com/browse/WFLY-12486?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13936385#comment-13936385 ] 

Miroslav Novak edited comment on WFLY-12486 at 12/17/19 11:03 AM:
------------------------------------------------------------------

PR from from WFLY-12758 (https://github.com/wildfly/wildfly/pull/12836) fixes OOME on heap but introduces thread leak.

Use can use this test to see thread leak:
{code}
git clone git at github.com:mnovak1/eap-microprofile-test-suite.git
cd eap-microprofile-test-suite
git checkout EAP7-1347
mvn clean verify -DfailIfNoTests=false -Darquillian.deploymentExportPath=target/deployments/ -Djboss.home=$WILDFLY_HOME -P mp-ft -Dtest=UndeployDeployTest#testRedeploy
--  CONNECT VISUALVM TO RUNNING WF SERVER ---
{code}

See: !wildfly-thread-leak.png!



was (Author: mnovak):
PR from from WFLY-12758 (https://github.com/wildfly/wildfly/pull/12836) fixus OOME on heap but introduces thread leak.

Use can use this test to see thread leak:
{code}
git clone git at github.com:mnovak1/eap-microprofile-test-suite.git
cd eap-microprofile-test-suite
git checkout EAP7-1347
mvn clean verify -DfailIfNoTests=false -Darquillian.deploymentExportPath=target/deployments/ -Djboss.home=$WILDFLY_HOME -P mp-ft -Dtest=UndeployDeployTest#testRedeploy
--  CONNECT VISUALVM TO RUNNING WF SERVER ---
{code}



> Memory leak in OpenTracing when deployment is redeployed multiple times
> -----------------------------------------------------------------------
>
>                 Key: WFLY-12486
>                 URL: https://issues.redhat.com/browse/WFLY-12486
>             Project: WildFly
>          Issue Type: Bug
>          Components: MP OpenTracing
>    Affects Versions: 17.0.0.Final, 17.0.1.Final, 18.0.1.Final
>            Reporter: Jan Stourac
>            Assignee: Emmanuel Hugonnet
>            Priority: Blocker
>         Attachments: memory-leak-bad.png, memory-leak-good.png, wildfly-thread-leak.png
>
>
> 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|https://github.com/wildfly/wildfly/commit/74170b5f49dd83f6b9ebd489f85e130df5521549] - 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|https://visualvm.github.io/] 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:
> {code}
> /subsystem=microprofile-opentracing-smallrye:remove()
> {code}
> the memory leak is still present. This is kind of confusing to me.



--
This message was sent by Atlassian Jira
(v7.13.8#713008)


More information about the jboss-jira mailing list