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

Freeman Fang commented on CXF-2211:
-----------------------------------

Hi Sergey,

I just found that there's also memory leak issue in smx-cxf code,  create [1] 
to track it.
By my test, your fix for CXF-2211 plus the fix for SMXCOMP-536 resolve the 
memory leak.

Thanks so much for your help!

[1]https://issues.apache.org/activemq/browse/SMXCOMP-536

Freeman

> Investigate possible OOM exception caused by Continuations
> ----------------------------------------------------------
>
>                 Key: CXF-2211
>                 URL: https://issues.apache.org/jira/browse/CXF-2211
>             Project: CXF
>          Issue Type: Bug
>          Components: Transports
>    Affects Versions: 2.0.11, 2.1.5, 2.2.1
>            Reporter: Sergey Beryozkin
>             Fix For: 2.0.12, 2.1.6, 2.2.2
>
>
> Apparently JMS and HTTP continuations leak, here is a comment from Freeman 
> (see CXF 2002) :
> But another issue I've found is the message leak problem with jms 
> continuation, let's say the server side recieved 1001 message
> then I saw the class instance like (get it by "jmap -histo:live" with jdk6)
>            instance_count size
>   51: 2002 128128 org.apache.cxf.message.MessageImpl
>   66: 2004 96192 org.apache.cxf.phase.PhaseInterceptorChain
>   67: 2002 96096 org.apache.cxf.transport.jms.JMSMessageHeadersType
>   77: 1001 72072 org.apache.cxf.message.ExchangeImpl
>   88: 1001 56056 org.apache.cxf.transport.jms.JMSOutputStream
>   99: 1001 48048 org.apache.cxf.ws.addressing.AddressingPropertiesImpl
>  100: 1001 48048 org.apache.cxf.transport.jms.continuations.JMSContinuation
>  101: 2002 48048 
> org.apache.cxf.phase.PhaseInterceptorChain$PhaseInterceptorIterator
>  113: 2088 33408 org.apache.cxf.common.util.SortedArraySet
>  116: 1003 32096 org.apache.cxf.ws.addressing.EndpointReferenceType
>  120: 1001 32032 
> org.apache.cxf.transport.jms.continuations.JMSContinuationProvider
>  121: 2002 32032 org.apache.cxf.binding.soap.SoapMessage
>  122: 1001 32032 
> org.apache.cxf.transport.jms.JMSDestination$BackChannelConduit
>  124: 1001 32032 
> org.apache.cxf.binding.soap.interceptor.SoapOutInterceptor$SoapOutEndingInterceptor
>  161: 1003 16048 org.apache.cxf.ws.addressing.AttributedURIType
>  162: 1001 16016 org.apache.cxf.staxutils.DepthXMLStreamReader
>  163: 1001 16016 org.apache.cxf.helpers.LoadingByteArrayOutputStream
>  164: 1001 16016 org.apache.cxf.endpoint.PreexistingConduitSelector
> never get released, so if sever run after long term, we will encouter the OOM 
> exception.
> I guess this might be another issue, so please create a new ticket if you 
> feel it's necessary.
> Btw, I also see same memory leak problem with cxf http continuation. 

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to