RE: Memory leaks on webapp redeploy

2006-11-29 Thread Mike Quilleash
ovember 2006 23: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-

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-28 Thread Jon Miller
- Original Message - From: "Christopher Schultz" <[EMAIL PROTECTED]> To: "Tomcat Users List" 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:

RE: Memory leaks on webapp redeploy

2006-11-28 Thread Mike Quilleash
If things have changed in the last year and someone could recommend a good profiler please let me know. Cheers. -Original Message----- From: Caldarale, Charles R [mailto:[EMAIL PROTECTED] Sent: 28 November 2006 18:09 To: Tomcat Users List Subject: RE: Memory leaks on webapp redeploy > From: M

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 c

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 luc

RE: Memory leaks on webapp redeploy

2006-11-28 Thread Mike Quilleash
I'm not sure if this definitely my problem, 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

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: Sent: Tuesday, November 28, 2006 3:30 AM Subject: RE: Memory leaks on we

Re: Memory leaks on webapp redeploy

2006-11-28 Thread Jon Miller
n - Original Message - From: "anjan bacchu" <[EMAIL PROTECTED]> To: "Tomcat Users List" 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 guy

Re: Memory leaks on webapp redeploy

2006-11-28 Thread Jon Miller
Currently I'm using 5.5.17, but, it's happened with every other version that I've used for the past several years as well. Jon - Original Message - From: "Mark Thomas" <[EMAIL PROTECTED]> To: "Tomcat Users List" Sent: Monday, November 27,

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 --- "C

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 portin

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. > > Q

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

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 automa

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 a

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. No

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: > http://opensource.atlassian.com/confluence/spring/pages/

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 ClassLoader

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 me

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 mea

Re: Memory leaks on webapp redeploy

2006-11-28 Thread Martin Gainty
error 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" Sent: Monday, November 27, 2006 8:37 PM Subject: Re: Memory leaks on webap

RE: Memory leaks on webapp redeploy

2006-11-28 Thread Remy.Coqueugniot
you find something useful RC > -Message d'origine- > De : Jon Miller [mailto:[EMAIL PROTECTED] > Envoyé : mardi 28 novembre 2006 01:38 > À : Tomcat User List > Objet : Memory leaks on webapp redeploy > > Hi all, > > > I think I read in a FAQ that even using a sing

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

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 > web

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

Memory leaks on webapp redeploy

2006-11-27 Thread Jon Miller
Hi all, 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. I