Thanks, this makes sense.  However, I'd like to find out what is being held 
onto by the log4j.jar.  So I'd like to test it out.  How does one redploy a 
single application?  Strange, I could not find any information on this 
seemingly basic task on google.  Thanks again.


--- On Wed, 1/14/09, Caldarale, Charles R <chuck.caldar...@unisys.com> wrote:

> From: Caldarale, Charles R <chuck.caldar...@unisys.com>
> Subject: RE: How to have multiple loggers with shared code also using the    
> logger?
> To: "Tomcat Users List" <users@tomcat.apache.org>
> Date: Wednesday, January 14, 2009, 9:27 PM
> > From: removeps-gro...@yahoo.com
> [mailto:removeps-gro...@yahoo.com]
> > Subject: RE: How to have multiple loggers with shared
> code
> > also using the logger?
> >
> > And since the log4j.jar resides in the
> ${catalina.home}/lib
> > folder, this root logger is used by all web apps.
> 
> The log4j.jar is only there because you put it there.  It
> does not come with the Tomcat distribution, and it's
> normally placed in the WEB-INF/lib directory of each webapp
> that needs it.
> 
> By having such a jar in a common location, you've
> pretty much guaranteed that you'll have to take Tomcat
> down to redeploy a single webapp - the old webapp won't
> go away because log4j will be hanging onto references to it.
>  (A common cause of PermGen filling up after redeployments.)
> 
> The servlet spec (and experience) strongly suggest that
> webapps be kept as isolated as possible for this kind of
> reason.
> 
>  - Chuck
> 
> 
> THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR
> OTHERWISE PROPRIETARY MATERIAL and is thus for use only by
> the intended recipient. If you received this in error,
> please contact the sender and delete the e-mail and its
> attachments from all computers.
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
> For additional commands, e-mail:
> users-h...@tomcat.apache.org

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

Reply via email to