Caldarale, Charles R wrote: >> From: Christopher Schultz [mailto:ch...@christopherschultz.net] >> Subject: Re: Headstart on "Resolving OOM-PermGen errors on webapp >> reload" >> >> Can you observe your heap and which ClassLoaders are still hanging >> around? You might want to check to see how many >> org/apache/catalina/loader/WebappClassLoader objects are still "live". >> In my web application, just after a Tomcat startup, I have 2 instances >> of this class, both of which are "live". > > "Live" is a critical attribute here - unless a full GC (or two) is done, > unused classes and classloaders will still be present. Use JConsole to > trigger GCs, if needed.
A decent profiler - cue another YourKit advert :) will skip any instances eligible for GC. Mark PS To be fair, all the profilers I have seen do this. --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org