commons-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Thomas Vandahl ...@apache.org>
Subject Re: JSC 1.3 thread cleanup
Date Fri, 23 Jan 2015 07:31:00 GMT
On 22.01.15 17:42, Tim Cronin wrote:
> I'm getting tomcat errors on shutdown:
> 
> 2015-01-22 16:41:51,186 [localhost-startStop-2] ERROR
> org.apache.catalina.loader.WebappClassLoader- The web application
> [/api] appears to have started a thread named
> [ElementEventQueue.QProcessor-1] but has failed to stop it. This is very l
> ikely to create a memory leak.
> 
> i tracked it down to
> 
> org.apache.jcs.engine.control.CompositeCache:
> 
>     /**
>      * EventQueue for handling element events. 1 should be enough for all
> the regions. Else should
>      * create as needed per region.
>      */
>     public static IElementEventQueue elementEventQ = new ElementEventQueue(
> "AllRegionQueue" );
> 
> then calling CompositeCache.elementEventQ.destroy();
> 
> but it can be flaky and IMO should be handled via
> CompositeCacheManager.shutdown().
> 
> is there a better way to handle this and do i need to file a bug on this?
> 

This has already been fixed in the current trunk. You may check out the
code and see if it works.

Bye, Thomas.


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@commons.apache.org
For additional commands, e-mail: user-help@commons.apache.org


Mime
View raw message