[
https://issues.apache.org/jira/browse/CXF-3978?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13172695#comment-13172695
]
Daniel Kulp commented on CXF-3978:
----------------------------------
The issue isn't the BusApplicationContext, it's the Bus itself. By creating a
new Bus per request, it's getting a new BusApplicationContext per request.
The fix from Seumas (as per his second comment on that issue) was to cache the
Bus and not destroy it for each request thus causing it to have to be
recreated.
> Multiple BusApplicationContext Objects created by CXF
> -----------------------------------------------------
>
> Key: CXF-3978
> URL: https://issues.apache.org/jira/browse/CXF-3978
> Project: CXF
> Issue Type: Bug
> Components: JAX-WS Runtime
> Affects Versions: 2.1
> Environment: Production
> Reporter: Dhawalpatel
> Priority: Blocker
>
> Hi all,
> Can anyone tell me if there was a known bug or issue wherein CXF creates a
> new BusApplicationCOntext object for each outgoing Web Service call? I see
> that while using JCA Connector architecture, SpringBusFactory object creates
> a new BusApplicationContext object. Is it a bug? I am running CXF in
> WebContainer thread pool of WAS and as the threads never gets killed due to
> pool, the BusApplicationContext objects accumulates and results in high GC
> memory.
> Please help if this is a known bug in this version of CXF? We are in a
> production down situation due to memory overhead created by
> BusApplicationContext object size and number of these objects. there is
> one-one correspondence between BusApplicatioContext to Thread in thread pool
> which is causing memory to increase.
> The version of cxf-bundle-fuse is 2-1-3-18
> THanks
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira