You are viewing a plain text version of this content. The canonical link for it is here.
Posted to batik-users@xmlgraphics.apache.org by tiwaris <ti...@gmail.com> on 2011/04/12 22:30:13 UTC

Re: CleanerThread never terminates, causes leaks in webapp

I also have encountered this issue. This happens rarely. When I quit my java
app, it sill has not released the shell (the process is still running). I
then used jvisualvm to monitor all the running threads in my application and
noticed that Batik CleanerThread was still running.

I incorporated the patch. Will have to see if the issue reappears.


--
View this message in context: http://batik.2283329.n4.nabble.com/CleanerThread-never-terminates-causes-leaks-in-webapp-tp2978944p3445621.html
Sent from the Batik - Users mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: batik-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: batik-users-help@xmlgraphics.apache.org


Re: CleanerThread never terminates, causes leaks in webapp

Posted by Martin Jacobson <ja...@gmail.com>.
I am running a webapp (under both Tomcat 6 & 7) that exhibits the same
behaviour:

14-Apr-2011 10:32:54 org.apache.catalina.loader.WebappClassLoader
clearReferencesThreads
SEVERE: The web application [/mapmosaic] appears to have started a
thread named [Batik CleanerThread] but has failed to stop it. This is
very likely to create a memory leak.

Under normal development conditions, the app is re-deployed many times
per day, and causes an OutOfMemoryError eventually. Even if in
production, the memory leak is so slow as to be negligeable, it would
be far better to provide a hook so I can terminate it when the webapp
closes.

Martin

On 12 April 2011 21:30, tiwaris <ti...@gmail.com> wrote:
> I also have encountered this issue. This happens rarely. When I quit my java
> app, it sill has not released the shell (the process is still running). I
> then used jvisualvm to monitor all the running threads in my application and
> noticed that Batik CleanerThread was still running.
>
> I incorporated the patch. Will have to see if the issue reappears.
>
>
> --
> View this message in context: http://batik.2283329.n4.nabble.com/CleanerThread-never-terminates-causes-leaks-in-webapp-tp2978944p3445621.html
> Sent from the Batik - Users mailing list archive at Nabble.com.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: batik-users-unsubscribe@xmlgraphics.apache.org
> For additional commands, e-mail: batik-users-help@xmlgraphics.apache.org
>
>



-- 
>From my MacBook Pro

---------------------------------------------------------------------
To unsubscribe, e-mail: batik-users-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: batik-users-help@xmlgraphics.apache.org