cxf-issues mailing list archives

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

    [ https://issues.apache.org/jira/browse/CXF-3978?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13172701#comment-13172701
] 

Dhawalpatel commented on CXF-3978:
----------------------------------

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(SpringBusFactory.java:136)
        at org.apache.cxf.bus.spring.SpringBusFactory.createBus(SpringBusFactory.java:131)
        at org.apache.cxf.bus.spring.SpringBusFactory.createBus(SpringBusFactory.java:121)
        at org.apache.cxf.jca.outbound.ManagedConnectionImpl.getBus(ManagedConnectionImpl.java:314)
        - locked <cf38d300> (a org.apache.cxf.jca.outbound.ManagedConnectionImpl)
        at org.apache.cxf.jca.outbound.ManagedConnectionImpl.createClientProxy(ManagedConnectionImpl.java:265)
        - locked <cf38d300> (a org.apache.cxf.jca.outbound.ManagedConnectionImpl)
Thanks
                
> 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

        

Mime
View raw message