Re: WebappClassLoader and undeploy

2009-11-10 Thread Mark Thomas
Elli Albek wrote: Thomas, My given name is is Mark. Thomas is my family name. what is the issue with javax.imageio? Do they really use context class loader for loading static variables? Yes. First call to most methods in that library trigger a call to sun.awt.AppContext.getAppContext() which

Re: WebappClassLoader and undeploy

2009-11-09 Thread Mark Thomas
Gerwood Stewart wrote: Tomact seems to have retained 1 on the WebappClassLoader instances. I have two questions at this point: 1. From the Javadocs both WebappClassLoader and WebappLoader are class loaders. What are the differences and why does Tomcat use both? WebappClassLoader is the

Re: WebappClassLoader and undeploy

2009-11-09 Thread Elli Albek
Managing class loaders is done in the JVM. Tomcat cannot force the JVM to garbage collect class loaders, in the same way that it cannot force the JVM to garbage collect any object. If the class loader is unreachable, and all other objects that this class loader provided are also unreachable, then

RE: WebappClassLoader and undeploy

2009-11-09 Thread Jorge Medina
...@sustainlane.com] Sent: Monday, November 09, 2009 5:53 PM To: Tomcat Users List Subject: Re: WebappClassLoader and undeploy Managing class loaders is done in the JVM. Tomcat cannot force the JVM to garbage collect class loaders, in the same way that it cannot force the JVM to garbage collect

RE: WebappClassLoader and undeploy

2009-11-09 Thread Caldarale, Charles R
From: Jorge Medina [mailto:jmed...@e-dialog.com] Subject: RE: WebappClassLoader and undeploy Does the JVM perform class unloading by default? Usually. However, the JVM version and the choice of GC algorithm may make it impossible to unload classes. For example, the concurrent collectors

RE: WebappClassLoader and undeploy

2009-11-09 Thread Gerwood Stewart
To: Tomcat Users List Subject: Re: WebappClassLoader and undeploy Gerwood Stewart wrote: Tomact seems to have retained 1 on the WebappClassLoader instances. I have two questions at this point: 1. From the Javadocs both WebappClassLoader and WebappLoader are class loaders. What

RE: WebappClassLoader and undeploy

2009-11-09 Thread Gerwood Stewart
I'm going to try and find a slightly old version of java and check it's behaviour... Gerwood From: Elli Albek [e...@sustainlane.com] Sent: Tuesday, 10 November 2009 9:52 AM To: Tomcat Users List Subject: Re: WebappClassLoader and undeploy Managing class

Re: WebappClassLoader and undeploy

2009-11-09 Thread Mark Thomas
Gerwood Stewart wrote: Mark 2. Why would Tomcat be cleaning up the WebappLoader instance everytime successfully but seems to 'hang-on' to the WebappClassLoader instance? My money is on it being JVM code rather than Tomcat code that is hanging onto the WebappClassLoader. Are you testing

Re: WebappClassLoader and undeploy

2009-11-09 Thread Mark Thomas
Gerwood Stewart wrote: Elli I understand most of this. I do several things such as forcing a GC before doing the heap dump, from what you are say this may not be enough? Either way I'm not looking for an instance of the class to simply be there I'm looking at the GC Roots. I also

RE: WebappClassLoader and undeploy

2009-11-09 Thread Gerwood Stewart
Mark Thanks. I suppose I'd better get back to identifying the real problems then. :D Gerwood From: Mark Thomas [ma...@apache.org] Sent: Tuesday, 10 November 2009 10:48 AM To: Tomcat Users List Subject: Re: WebappClassLoader and undeploy Gerwood Stewart

Re: WebappClassLoader and undeploy

2009-11-09 Thread Mark Thomas
From: Mark Thomas [ma...@apache.org] Sent: Tuesday, 10 November 2009 10:48 AM To: Tomcat Users List Subject: Re: WebappClassLoader and undeploy Gerwood Stewart wrote: Elli I understand most of this. I do several things such as forcing a GC before doing the heap dump, from what you

Re: WebappClassLoader and undeploy

2009-11-09 Thread Elli Albek
Thomas, what is the issue with javax.imageio? Do they really use context class loader for loading static variables? - To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: