Hello Paul,

What you are telling me is a good news. The facts I have here, are different. I 
ran the server for a load-test and ran only 26000 message (of about 1K each 
message size), that made the GC threads taking over every thing, the java 
process was so stuck that the jboss-shutdown command could not bring it down.

And my trace log (memory profiling) showed that one instance of both 
MessageContext and Axis2MessageContext were leaked for every message that is 
delivered/processed.

I am using 1.2 GA of synapse. And I am running it in JBoss.

And will be more than happy to send the thread dump, but that is very big.

Once again thanks for getting back to me and I am looking for good pointers 
from you very soon.

Regards,
Abid




-----Original Message-----
From: Paul Fremantle [mailto:[email protected]] 
Sent: Wednesday, May 18, 2011 8:39 PM
To: [email protected]
Subject: Re: Please help: does Synapse leak memory?

Abid

Can you give us some idea of the flows? I know that Synapse is usually
memory safe - I have thread dumps from people who have pumped 134
terabytes of data, 1.4 billion messages and all this with a max heap
size of <2Gb and no leaks.

Paul

On Thu, May 19, 2011 at 1:49 AM, Abid Khan-EXT <[email protected]> wrote:
> Hello all,
>
> I am troubleshooting an instance where I had used Synapse, the issue is that 
> after delivering few thousand message server runs out of memory.
>
> I investigated and found out that for each message that is delivered Synapse 
> is leaking following two objects:
>
> 1) org.apache.axis2.context.MessageContext
>
> 2) org.apache.synapse.core.axis2.Axis2MessageContext
>
> I thought that it might be related to threads and ThreadLocal, but when I 
> scanned the thread local of all 160+ threads those objects were not there.
>
> It seems that synapse is keeping those two object in its some internal 
> object, that is difficult to find.
>
> Because of this problem those objects; server leaks memory at very high rate, 
> and freezes after few hours of running?
>
> Any immediate response will be appreciated,
>
>
> Thanks,
> Abid
>



-- 
Paul Fremantle
Co-Founder and CTO, WSO2
Apache Synapse PMC Chair
OASIS WS-RX TC Co-chair

blog: http://pzf.fremantle.org
[email protected]

"Oxygenating the Web Service Platform", www.wso2.com

Reply via email to