cxf-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Dhawalpatel (Updated) (JIRA)" <>
Subject [jira] [Updated] (CXF-3978) Multiple BusApplicationContext Objects created by CXF
Date Mon, 19 Dec 2011 22:51:30 GMT


Dhawalpatel updated CXF-3978:

    Comment: was deleted

(was: I checked the code of SpringBusfactory. It does not resolve this issue. The issue 2398
is totally different from what I have reported. Can you please check the code SpringBusFactory
code createBus method that it create 
public Bus createBus(String cfgFiles[], boolean includeDefaults) {
        try {      
            return finishCreatingBus(createApplicationContext(cfgFiles, includeDefaults));
        } catch (BeansException ex) {
            LogUtils.log(LOG, Level.WARNING, "APP_CONTEXT_CREATION_FAILED_MSG", ex, (Object[])null);
            throw new RuntimeException(ex);

in each call of getConnection. See below stack trace that I am talking about.

at org.apache.cxf.bus.spring.SpringBusFactory.createBus(
        at org.apache.cxf.bus.spring.SpringBusFactory.createBus(
        at org.apache.cxf.bus.spring.SpringBusFactory.createBus(
        at org.apache.cxf.jca.outbound.ManagedConnectionImpl.getBus(
        - locked <cf38d300> (a org.apache.cxf.jca.outbound.ManagedConnectionImpl)
        at org.apache.cxf.jca.outbound.ManagedConnectionImpl.createClientProxy(
        - locked <cf38d300> (a org.apache.cxf.jca.outbound.ManagedConnectionImpl)
> Multiple BusApplicationContext Objects created by CXF
> -----------------------------------------------------
>                 Key: CXF-3978
>                 URL:
>             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:!default.jspa
For more information on JIRA, see:


View raw message