Do you mean one declared in server.xml ? or have the StandardThreadExecutor 
register itself as a LifeCycleListener ? In the latter case, my problem is how 
do I get a reference to StandardContext instances from the 
StandardThreadExecutor ?

Sylvain

On 27 avr. 2010, at 08:46, Konstantin Kolinko wrote:

> 2010/4/27 Sylvain Laurent <sylvain.laur...@m4x.org>:
>> Hello,
>> 
>> In order to provide a protection agains this type of memory leak 
>> http://wiki.apache.org/tomcat/MemoryLeakProtection#webappClassInstanceAsThreadLocalIndirectValue
>>  , I experimented with renewing the ThreadPoolExecutor in the 
>> org.apache.catalina.core.StandardThreadExecutor. It works when I invoke my 
>> renewThreads method through JMX, but now I'd like it to be invoked after a 
>> webapp is being stopped.
>> 
>> What's the best way to do that ? a LifeCycle listener to be registered 
>> somewhere ?
>> 
> 
> I would try to use a LifecycleListener registered on StandardContext.
> 
> Best regards,
> Konstantin Kolinko
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org
> For additional commands, e-mail: dev-h...@tomcat.apache.org
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org
For additional commands, e-mail: dev-h...@tomcat.apache.org

Reply via email to