tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Konstantin Kolinko <knst.koli...@gmail.com>
Subject Re: How to start a daemon without getting the warning?
Date Wed, 27 Oct 2010 23:01:40 GMT
2010/10/28 Leon Rosenberg <rosenberg.leon@gmail.com>:
> Hello Konstantin,
>
> On Wed, Oct 27, 2010 at 11:53 PM, Konstantin Kolinko
> <knst.kolinko@gmail.com> wrote:
>> 2010/10/28 Leon Rosenberg <rosenberg.leon@gmail.com>:
>>>
>>> Well, that would just move the problem from stopping Timer to calling
>>> shutdown on  Executor, wouldn't it?
>>>
>>
>> The problem is with the Thread.getContextClassLoader() for your
>> thread.  It contains a reference to the webapp classloader, and thus
>> does not allow to GC it.
>
> But I can't detect any obvious Thread.getContextClassLoader() calls in
> the code below:
>
> public class BuiltInMemoryPoolProducer implements IStatsProducer{
>(skipped the code, have not read it)
>

If you mean setContextClassLoader(..), that happens in
java.lang.Thread constructor, or more specifically in some private
helper method called there (Thread.init()).

The Thread is created by the Timer.

Best regards,
Konstantin Kolinko

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


Mime
View raw message