|
From: Guillaume P. <gpo...@gl...> - 2004-10-20 02:10:23
|
> How does it not create a leak if the classloader is not going away? > The real cause of the OOM exceptions is that the WebappClassLoader > instances never go away. I meant if the container (e.g. Tomcat) doesn't throw the ClassLoader away, i.e. if it's still in use... Of course, if the webapp is reloaded and the old ClassLoader isn't collected, that's a leak. What I was saying is the problem with Dom4j cause a leak when you reload the webapp, but cause no leak if you never use hot-reload. (While the CGLIB leak apparently does the opposite) Guillaume ----- Original Message ----- From: "Seth Ladd" <set...@gm...> To: <spr...@li...> Sent: Tuesday, October 19, 2004 7:58 PM Subject: Re: [Springframework-developer] CGLIB memory usage within class loader > On Tue, 19 Oct 2004 18:41:48 -0400, Guillaume Poirier > <gpo...@gl...> wrote: >> > And we still see OOM w/ redeployments in Tomcat. The more I look into >> > it, the more it points to a CGLIB problem from Hibernate. Only when I >> > include Hibernate into my deployments or somehow use CGLIB do I get >> > OOM after a few redeployments or test runs. >> >> If you use Hibernate, then there's at least something else that will >> prevent >> the old webapp's classloader to be collected when you application is >> reloaded. That's Dom4j, it uses ThreadLocal stuff without ever removing >> it, >> which prevent the ClassLoader to be collected for as long as the pooled >> threads are not destroyed. >> >> However, that particular problem doesn't cause any leak if the webapp's >> ClassLoader isn't thrown away. > > How does it not create a leak if the classloader is not going away? > The real cause of the OOM exceptions is that the WebappClassLoader > instances never go away. > > Thanks! > Seth > > > ------------------------------------------------------- > This SF.net email is sponsored by: IT Product Guide on ITManagersJournal > Use IT products in your business? Tell us what you think of them. Give us > Your Opinions, Get Free ThinkGeek Gift Certificates! Click to find out > more > http://productguide.itmanagersjournal.com/guidepromo.tmpl > _______________________________________________ > Springframework-developer mailing list > Spr...@li... > https://lists.sourceforge.net/lists/listinfo/springframework-developer |