RE: Memory leaks on webapp redeploy

2006-11-29 Thread Mike Quilleash
:37 To: Tomcat Users List Subject: Re: Memory leaks on webapp redeploy On 11/28/06, Mike Quilleash [EMAIL PROTECTED] wrote: As a brief aside I found the following code in the WebAppClassLoader.releaseResources() of Tomcat 6, so it looks like some of the well-known caches are being cleared out

RE: Memory leaks on webapp redeploy

2006-11-28 Thread Remy.Coqueugniot
Is anyone running into issues with memory leaks occuring whenever a webapp is redeployed? I've been having a lot of problems with this. I think what's exacerbating the problem is that I'm using Hibernate and JAX-WS which I have bundled with my application which use a lot of memory. Yes,

Re: Memory leaks on webapp redeploy

2006-11-28 Thread Martin Gainty
and that any review, disclosure, dissemination, distribution or copying of it or its contents - Original Message - From: Mark Thomas [EMAIL PROTECTED] To: Tomcat Users List users@tomcat.apache.org Sent: Monday, November 27, 2006 8:37 PM Subject: Re: Memory leaks on webapp redeploy Jon

Re: Memory leaks on webapp redeploy

2006-11-28 Thread Mikolaj Rydzewski
[EMAIL PROTECTED] wrote: The problems seems to be located with Cglib classloaders referencing policy. There is a lot of topic on the Net, which may be interessing to read, but noone seems to have found a valuable solution. (Increasing the PermGenspace is NOT a reasonable solution) That

RE: Memory leaks on webapp redeploy

2006-11-28 Thread Remy.Coqueugniot
The problems seems to be located with Cglib classloaders referencing policy. There is a lot of topic on the Net, which may be interessing to read, but noone seems to have found a valuable solution. (Increasing the PermGenspace is NOT a reasonable solution) That means, that

Re: Memory leaks on webapp redeploy

2006-11-28 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Jon, Jon Miller wrote: Is anyone running into issues with memory leaks occuring whenever a webapp is redeployed? This is probably not Tomcat's fault it's Java's fault. When Tomcat reloads a webapp, it discards the ClassLoader (or

Re: Memory leaks on webapp redeploy

2006-11-28 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Remy, [EMAIL PROTECTED] wrote: That means, that hibernate apps will always generate OOM... Not always. But some hibernate/cglib/tomcat uses seems to generate classloader memory leak:

RE: Memory leaks on webapp redeploy

2006-11-28 Thread Caldarale, Charles R
From: Christopher Schultz [mailto:[EMAIL PROTECTED] Subject: Re: Memory leaks on webapp redeploy Last time I checked, Class objects basically never get GC'd, so any static data stays around forever. You have to shut down the VM in order to free that memory. Not true - classes do get

Re: Memory leaks on webapp redeploy

2006-11-28 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Chuck, Caldarale, Charles R wrote: From: Christopher Schultz [mailto:[EMAIL PROTECTED] Subject: Re: Memory leaks on webapp redeploy Last time I checked, Class objects basically never get GC'd, so any static data stays around forever. You have

RE: Memory leaks on webapp redeploy

2006-11-28 Thread Caldarale, Charles R
From: Christopher Schultz [mailto:[EMAIL PROTECTED] Subject: Re: Memory leaks on webapp redeploy This wasn't the case some time ago. A cleanly written webapp would double the number of Class objects kept around after a re-deploy (actually, after an automatic re-deploy, but that shouldn't

RE: Memory leaks on webapp redeploy

2006-11-28 Thread Remy.Coqueugniot
It's been a while since I profiled any of my apps, but that used to be the case... after a few days in development of auto-re-loading the webapps, we'd get an OOM. We could watch the heap fill up with useless Class objects (for instance, my.package.Class showed up 10 times after 9

Re: Memory leaks on webapp redeploy

2006-11-28 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Chuck, Caldarale, Charles R wrote: Subject: Re: Memory leaks on webapp redeploy The only thing I can think of is perhaps Java is keeping introspection information around and never releasing it. Quite possible. There's a good discussion

RE: Memory leaks on webapp redeploy

2006-11-28 Thread Caldarale, Charles R
From: Christopher Schultz [mailto:[EMAIL PROTECTED] Subject: Re: Memory leaks on webapp redeploy Maybe this issue has been fixed in recent VMs (IIRC, older VMs -- maybe 1.3-era -- would never discard java.lang.Class objects. Not true either. I've been porting Sun's JVMs to various

RE: Memory leaks on webapp redeploy

2006-11-28 Thread Remy.Coqueugniot
http://wiki.apache.org/tomcat/OutOfMemory : Another link which deals about OOM and singleton. Have you ever tried to do some inspections with decent profiler (OptimiseIt, Jprofiler, Yourkit, ...) ? RC ---

Re: Memory leaks on webapp redeploy

2006-11-28 Thread Jon Miller
: Memory leaks on webapp redeploy Jon Miller wrote: Hi all, Is anyone running into issues with memory leaks occuring whenever a webapp is redeployed? Tomcat version? There have been issues with older releases. I think I read in a FAQ that even using a singleton in your app will cause memory

Re: Memory leaks on webapp redeploy

2006-11-28 Thread Jon Miller
- From: anjan bacchu [EMAIL PROTECTED] To: Tomcat Users List users@tomcat.apache.org Sent: Monday, November 27, 2006 8:08 PM Subject: Re: Memory leaks on webapp redeploy Hi Mark, Does anyone on the tomcat dev list use Netbeans profiler at all ? OR do you guys exclusively use YourKit ? Thank

Re: Memory leaks on webapp redeploy

2006-11-28 Thread Jon Miller
Thanks for the info Remy. I've been using Sun's JVM, but, I think I'm going to try IBM's to see if that makes a difference. Jon - Original Message - From: [EMAIL PROTECTED] To: users@tomcat.apache.org Sent: Tuesday, November 28, 2006 3:30 AM Subject: RE: Memory leaks on webapp

RE: Memory leaks on webapp redeploy

2006-11-28 Thread Mike Quilleash
, maybe someone who's more familiar with ClassLoading issues can make something of this. Cheers. -Original Message- From: Caldarale, Charles R [mailto:[EMAIL PROTECTED] Sent: 28 November 2006 16:43 To: Tomcat Users List Subject: RE: Memory leaks on webapp redeploy From: Christopher

Re: Memory leaks on webapp redeploy

2006-11-28 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Jon, Jon Miller wrote: I'm getting ready to try NetBeans profiler right now. I tried it awhile back before it was released, but, there was something wrong with the Solaris library, so, I couldn't get it to work. I'm hoping I'll have better luck

RE: Memory leaks on webapp redeploy

2006-11-28 Thread Caldarale, Charles R
From: Mike Quilleash [mailto:[EMAIL PROTECTED] Subject: RE: Memory leaks on webapp redeploy Looks like during the WebappClassLoader cleanup the logging is being reinitialised. You may well have found the problem. Must be some context-specific logging going on after contextDestroyed

Re: Memory leaks on webapp redeploy

2006-11-28 Thread Jon Miller
- Original Message - From: Christopher Schultz [EMAIL PROTECTED] To: Tomcat Users List users@tomcat.apache.org Sent: Tuesday, November 28, 2006 11:46 AM Subject: Re: Memory leaks on webapp redeploy -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Jon, Jon Miller wrote: I'm getting

Re: Memory leaks on webapp redeploy

2006-11-28 Thread Rémy Maucherat
On 11/28/06, Mike Quilleash [EMAIL PROTECTED] wrote: As a brief aside I found the following code in the WebAppClassLoader.releaseResources() of Tomcat 6, so it looks like some of the well-known caches are being cleared out by Tomcat itself. Are you using 5.5 or 6.0 ? If you're using 5.5, then

Re: Memory leaks on webapp redeploy

2006-11-27 Thread Mark Thomas
Jon Miller wrote: Hi all, Is anyone running into issues with memory leaks occuring whenever a webapp is redeployed? Tomcat version? There have been issues with older releases. I think I read in a FAQ that even using a singleton in your app will cause memory leaks? Does anyone know if this

Re: Memory leaks on webapp redeploy

2006-11-27 Thread anjan bacchu
Hi Mark, Does anyone on the tomcat dev list use Netbeans profiler at all ? OR do you guys exclusively use YourKit ? Thank you, BR, ~A On 11/27/06, Mark Thomas [EMAIL PROTECTED] wrote: Jon Miller wrote: Hi all, Is anyone running into issues with memory leaks occuring whenever a webapp

Re: Memory leaks on webapp redeploy

2006-11-27 Thread Nicholas Sushkin
On Monday 27 November 2006 19:37, Jon Miller wrote: Is anyone running into issues with memory leaks occuring whenever a webapp is redeployed? Yes ... :) I've been having a lot of problems with this. I think what's exacerbating the problem is that I'm using Hibernate and JAX-WS which I