tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mark Thomas <>
Subject Re: Headstart on "Resolving OOM-PermGen errors on webapp reload"
Date Tue, 21 Apr 2009 21:58:09 GMT
Caldarale, Charles R wrote:
>> From: Christopher Schultz []
>> 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.


PS To be fair, all the profilers I have seen do this.

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message