Re: How to start a daemon without getting the warning?

2010-10-28 Thread Ronald Klop
You should call timer.cancel() on context stop. You can do this from a ServletContextListener. Ronald. Op woensdag, 27 oktober 2010 22:10 schreef Leon Rosenberg : Hello, I'm getting following warning with 6.0.29, after shutdown: SEVERE: The web application [/moskitodemo] appears to hav

Re: How to start a daemon without getting the warning?

2010-10-27 Thread Konstantin Kolinko
2010/10/28 Leon Rosenberg : > Hello Konstantin, > > On Wed, Oct 27, 2010 at 11:53 PM, Konstantin Kolinko > wrote: >> 2010/10/28 Leon Rosenberg : >>> >>> Well, that would just move the problem from stopping Timer to calling >>> shutdown on  Executor, wouldn't it? >>> >> >> The problem is with the T

RE: How to start a daemon without getting the warning?

2010-10-27 Thread Caldarale, Charles R
> From: Leon Rosenberg [mailto:rosenberg.l...@gmail.com] > Subject: Re: How to start a daemon without getting the warning? > But I can't detect any obvious Thread.getContextClassLoader() > calls in the code below: The problem isn't associated with calling the above meth

Re: How to start a daemon without getting the warning?

2010-10-27 Thread Leon Rosenberg
Hello Konstantin, On Wed, Oct 27, 2010 at 11:53 PM, Konstantin Kolinko wrote: > 2010/10/28 Leon Rosenberg : >> >> 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 > t

Re: How to start a daemon without getting the warning?

2010-10-27 Thread Konstantin Kolinko
2010/10/28 Leon Rosenberg : > > 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

Re: How to start a daemon without getting the warning?

2010-10-27 Thread Leon Rosenberg
On Wed, Oct 27, 2010 at 11:39 PM, Caldarale, Charles R wrote: >> From: Leon Rosenberg [mailto:rosenberg.l...@gmail.com] >> Subject: Re: How to start a daemon without getting the warning? > >> Meaning that I have to implement own thread registry for >> all started thread

RE: How to start a daemon without getting the warning?

2010-10-27 Thread Caldarale, Charles R
> From: Leon Rosenberg [mailto:rosenberg.l...@gmail.com] > Subject: Re: How to start a daemon without getting the warning? > Meaning that I have to implement own thread registry for > all started threads? Nobody's going to do it for you, since they're part of your

Re: How to start a daemon without getting the warning?

2010-10-27 Thread Leon Rosenberg
On Wed, Oct 27, 2010 at 10:43 PM, Caldarale, Charles R wrote: >> From: Leon Rosenberg [mailto:rosenberg.l...@gmail.com] >> Subject: How to start a daemon without getting the warning? > >> to my knowledge this thread is a daemon. > > Which isn't really relevant

RE: How to start a daemon without getting the warning?

2010-10-27 Thread Caldarale, Charles R
> From: Leon Rosenberg [mailto:rosenberg.l...@gmail.com] > Subject: How to start a daemon without getting the warning? > to my knowledge this thread is a daemon. Which isn't really relevant in the situation where only the context is being stopped, not the entire JVM. > how

How to start a daemon without getting the warning?

2010-10-27 Thread Leon Rosenberg
Hello, I'm getting following warning with 6.0.29, after shutdown: SEVERE: The web application [/moskitodemo] appears to have started a thread named [MoskitoMemoryPoolReader] but has failed to stop it. This is very likely to create a memory leak. here's the snapshot of the code that starts the th