axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Andreas Veithen <andreas.veit...@gmail.com>
Subject Re: Possible memory leak in Axis2 1.4.1?
Date Tue, 09 Mar 2010 11:36:20 GMT
Chinmoy,

This could be related to AXIS2-4263. Can you try the workaround(s)
proposed in that issue?

Andreas

On Tue, Mar 9, 2010 at 10:46, Chinmoy Chakraborty <cchinu@gmail.com> wrote:
> Andreas,
> Following is the report I got after stopping our app:
>
> /arit-war-0.1
>
> Thread, target=org.apache.tomcat.util.net.AprEndpoint$Worker
>
> <defunct>
>
> Timer thread; tasks:
> org.apache.axis2.deployment.scheduler.Scheduler$SchedulerTimerTask
> Timer thread; tasks: labware.util.ResourceMonitor
>
> labware.util.ResourceMonitor is our class but once I comment out axis2
> entries in web.xml I  do not get the error.
> Chinmoy
>
>
> On Tue, Mar 9, 2010 at 3:05 PM, Andreas Veithen <andreas.veithen@gmail.com>
> wrote:
>>
>> Chinmoy,
>>
>> The important test is actually to get the arit report after stopping
>> the Axis2 application. This will really show the leaked resources
>> (under "<defunct>"). Can you do this and post the result?
>>
>> Andreas
>>
>> On Tue, Mar 9, 2010 at 10:27, Chinmoy Chakraborty <cchinu@gmail.com>
>> wrote:
>> > Amila,
>> > Still I get the error after switching off following parameter:
>> >
>> > <parameter name="hotdeployment">false</parameter>
>> >     <parameter name="hotupdate">false</parameter>
>> > Andreas,
>> > I get following report when I tried http://localhost:8080/arit-war-0.1/
>> > :
>> > /arit-war-0.1
>> > Thread, target=org.apache.tomcat.util.net.AprEndpoint$Worker
>> >
>> > /web3_dev_1209 (this is our app)
>> > Timer thread; tasks:
>> > org.apache.axis2.deployment.scheduler.Scheduler$SchedulerTimerTask
>> > Thread,
>> >
>> > target=org.apache.axis2.soapmonitor.servlet.SOAPMonitorService$ServerSocketThread
>> >
>> > I commented out SOAPMonitorService from web.xml but still I get the
>> > error.
>> > It seems that the problem lies in
>> >  org.apache.axis2.deployment.scheduler.Scheduler$SchedulerTimerTask . At
>> > this point both the above mentioned parameters are switched off.
>> > Now if I switched on those params I get following report from arit:
>> >
>> > /arit-war-0.1
>> >
>> > Thread, target=org.apache.tomcat.util.net.AprEndpoint$Worker
>> >
>> > /web3_dev_1209
>> >
>> > Timer thread; tasks:
>> > org.apache.axis2.deployment.scheduler.Scheduler$SchedulerTimerTask
>> > Timer thread; tasks:
>> > org.apache.axis2.deployment.scheduler.Scheduler$SchedulerTimerTask
>> > Thread,
>> >
>> > target=org.apache.axis2.soapmonitor.servlet.SOAPMonitorService$ServerSocketThread
>> >
>> > Chinmoy
>> >
>> >
>> >
>> >
>> >
>> > On Tue, Mar 9, 2010 at 10:32 AM, Amila Suriarachchi
>> > <amilasuriarachchi@gmail.com> wrote:
>> >>
>> >>
>> >> On Mon, Mar 8, 2010 at 8:55 PM, Chinmoy Chakraborty <cchinu@gmail.com>
>> >> wrote:
>> >>>
>> >>> Hi All,
>> >>> I have an application which uses Axis2 1.4.1. When we have Axis2
>> >>> configured (servlet mappings) in web.xml we get following error in
>> >>> Tomcat
>> >>> 6.0.24.
>> >>> "A web application appears to have started a thread named [Timer-0]
>> >>> but
>> >>> has failed to stop it. This is very likely to create a memory leak".
>> >>
>> >>  Axis2 starts a new timer task to pool the deployment directory. This
>> >> could be this thread.
>> >> try switch offing hotUpdate
>> >> <parameter name="hotdeployment">false</parameter>
>> >>
>> >> thanks,
>> >> Amila.
>> >>>
>> >>> According to tomcat developers this happens when an app starts a
>> >>> thread
>> >>> but never stops it. Tomcat tries to stop the thread (6.0.22 onwards)
>> >>> if
>> >>> tomcat fails to stop the thread, it gives above message.
>> >>> If we comment out Axis2 servlet mappings in web.xml we do not get the
>> >>> error.
>> >>> Any comments?
>> >>> Chinmoy
>> >>
>> >>
>> >>
>> >> --
>> >> Amila Suriarachchi
>> >> WSO2 Inc.
>> >> blog: http://amilachinthaka.blogspot.com/
>> >
>> >
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: java-dev-unsubscribe@axis.apache.org
>> For additional commands, e-mail: java-dev-help@axis.apache.org
>>
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: java-dev-unsubscribe@axis.apache.org
For additional commands, e-mail: java-dev-help@axis.apache.org


Mime
View raw message