tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mark Thomas <ma...@apache.org>
Subject Re: Memory leaks and IllegalStateException caused (probably) by a Singleton object
Date Thu, 04 Oct 2012 08:43:49 GMT
On 04/10/2012 09:25, Nick Katsipoulakis wrote:

> Bonjorno Filippo and Gracie for your immediate answer.
> I also do not see anything wrong with my code, since the Singleton class
> I am using has been tested in other web
> services as well. My suspicion is that Apache Tomcat has some cleaning
> up mechanisms, that react negatively when they come across my Singleton
> object.
> I am investigating on the matter and I am trying to dig deeper on the
> Memory leaks that may occur on Tomcat.
> Do you happen to know (or anyone else) any good tools for monitoring
> memory of each thread in Tomcat?
> A tool that can get integrated into Netbeans would be a plus.

The problem - as the log messages make clear - is the use of ThreadLocal.

This will help you understand what is going on:
http://people.apache.org/~markt/presentations/2010-11-04-Memory-Leaks-60mins.pdf

This will help you trace the leaks in your application:
http://www.yourkit.com

(other profilers are available - that is the one I use because they give
free license to ASF committers)

Mark


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


Mime
View raw message