Hi Ozgur and others,
Ok, I am here. Thanks for the issue about this log.
I have tomcat 6.0.26 but I have not reproduced the issue yet.
Yes there is a timer thread in javamelody, and it is correctly canceled
in the destroy method as can be seen here in the http filter:
http://code.google.com/p/javamelody/source/browse/trunk/javamelody-core/src/main/java/net/bull/javamelody/MonitoringFilter.java#303
I am available to see what is going on. See you in the issue:
http://code.google.com/p/javamelody/issues/detail?id=25
bye, Emeric
Le 24/05/2010 14:04, Ozgur Ozdemircili a écrit :
For the record Just opened up a issue. Let`s see how it ends there:
http://code.google.com/p/javamelody/issues/detail?id=25
Thanks.
Özgür Özdemircili
http://www.acikkod.org
Code so clean you could eat off it
On Mon, May 24, 2010 at 1:56 PM, Peter Crowther<peter.crowt...@melandra.com
wrote:
On 24 May 2010 12:48, Ozgur Ozdemircili<ozgur.ozdemirc...@gmail.com>
wrote:
I have installed Javamelody version 1.15. In my catalina.out there
appears
error messages:
[...]
GRAVE: A web application appears to have started a TimerThread named
[javamelody javamelody] via the java.util.Timer API but has failed to
stop
it. To prevent a memory leak, the timer (and hence the associated thread)
has been forcibly cancelled.
[...]
Code so clean you could eat off it
Your code may be clean, Javamelody's isn't ;-). Somewhere, it starts a
timer thread and doesn't clear it up. Tomcat detects this case and cancels
the timer, issuing a warning. You *could* leave this as-is, but it's
difficult to know what else might be leaking within Javamelody.
You might want to find out how to cancel Javamelody's timer thread, then
use
a lifecycle listener in your webapp to cancel the timer on appropriate
lifecycle events. Or talk to the Javamelody team to find out how to cancel
the timer at the appropriate time.
- Peter
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org