tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mark Thomas <ma...@apache.org>
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 [mailto:chris@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-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Mime
View raw message