tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Lionel Farbos <lionel.far...@free.fr>
Subject Re: Singleton memory leak after redeploying.
Date Tue, 29 Nov 2005 15:44:40 GMT
On Tue, 29 Nov 2005 00:39:51 -0600
erh@swapsimple.com wrote:

> On Mon, Nov 28, 2005 at 06:24:52PM +0100, Lionel Farbos wrote:
> > Hi Juan,
> > 
> > I think your problem can't be solved (only) by Tomcat.
> > The problem is that objets stay in memory because of pointers on static references...
> 
> 	but aren't those supposed to go away when the classloader is no longer
> referenced?  If you can't get to the classloader that loaded the class
> then you can't get to the static fields, so it should be gc'd.  no?
> 
> eric
> 
Sorry, I made a mistake in my tests/analysis : 

the singleton is freed when singleton=null;

If its classloaders is not garbaged on the next "Full GC"
this is due to another object always pointed ...
So, see this : http://opensource2.atlassian.com/confluence/spring/pages/viewpage.action?pageId=2669

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


Mime
View raw message