You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@camel.apache.org by "ASF GitHub Bot (JIRA)" <ji...@apache.org> on 2018/09/24 12:37:00 UTC
[jira] [Commented] (CAMEL-12829) An autocreated CXF Bus not shut
down in CxfSpringEndpoint
[ https://issues.apache.org/jira/browse/CAMEL-12829?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16625756#comment-16625756 ]
ASF GitHub Bot commented on CAMEL-12829:
----------------------------------------
GitHub user ppalaga opened a pull request:
https://github.com/apache/camel/pull/2530
CAMEL-12829: An autocreated CXF Bus not shut down in CxfSpringEndpoint
https://issues.apache.org/jira/browse/CAMEL-12829
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/ppalaga/camel CAMEL-12829
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/camel/pull/2530.patch
To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:
This closes #2530
----
commit 4a867ef5376932a78d2677785dd261e812b12c78
Author: Peter Palaga <pp...@...>
Date: 2018-09-24T06:00:53Z
CAMEL-12829: An autocreated CXF Bus not shut down in CxfSpringEndpoint
----
> An autocreated CXF Bus not shut down in CxfSpringEndpoint
> ---------------------------------------------------------
>
> Key: CAMEL-12829
> URL: https://issues.apache.org/jira/browse/CAMEL-12829
> Project: Camel
> Issue Type: Bug
> Components: camel-cxf
> Reporter: Peter Palaga
> Assignee: Peter Palaga
> Priority: Major
>
> {{CxfSpringEndpoint.setApplicationContext(ApplicationContext)}} creates a {{org.apache.cxf.Bus}} [1] whose {{shutdown()}} method is never called. This is one of the causes for a memory leak in WildFly Camel (WFC) [2].
> The steps to reproduce for WFC are as follows:
> 1. Start the WFC
> 2. run the CXFWSConsumerIntegrationTest several times
> 3. Force GC on WFC
> 4. Get a heap dump
> NOT OK: There are as many stale SpringBus instances as many times the test was run.
> Expected: no SpringBus instances there
> [1] https://github.com/apache/camel/blob/c69affc49415b190645ce25536ffd62348c4fe34/components/camel-cxf/src/main/java/org/apache/camel/component/cxf/CxfSpringEndpoint.java#L251
> [2] https://github.com/wildfly-extras/wildfly-camel/issues/2649
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)