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:50:06 GMT
On Tue, 29 Nov 2005 09:31:28 +0100
Mikolaj Rydzewski <mikolajr@becomo.com> wrote:

> Lionel Farbos wrote:
> 
> >Notes :
> >- Perhaps your Listener will have to delete other objets like SQL drivers, commons
logger, ...
> >- see also : http://opensource2.atlassian.com/confluence/spring/pages/viewpage.action?pageId=2669
> >  
> >
> Does log4j have some nice method to free all Logger objects? It seems 
> like a nightmare to free Loggers from all of my classes by hand...

I think it's not a good idea to have a lot of logger objects in a webapp :
In a webapp, you need only one logger.

Then, on the last servlet destroy, you can freed your logger with logger=null;
I think no other method is needed.

Regards.

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


Mime
View raw message