2010/10/28 Leon Rosenberg <rosenberg.l...@gmail.com>: > Hello Konstantin, > > On Wed, Oct 27, 2010 at 11:53 PM, Konstantin Kolinko > <knst.koli...@gmail.com> wrote: >> 2010/10/28 Leon Rosenberg <rosenberg.l...@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-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org