tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mark Thomas <ma...@apache.org>
Subject Re: Is this a classloader leak?
Date Thu, 20 Sep 2018 17:38:04 GMT
On 20/09/18 17:25, Suvendu Sekhar Mondal wrote:
> Hello Everyone,
> 
> Recently I am investigating a Metaspace leak issue. I dumped Metaspace
> content over time using jcmd. While comparing them I can see that
> there are 15,000 classes which are taking 120MB in that area! For all
> of them InstCount(number of object instances of the Java class) is
> zero. That tells me there is *no object* for those 15K classes in
> heap. I can see that too in heap. No objects found for those classes.
> 
> Then why are they still live in the Metaspace and not getting cleared
> by Full GC? Definitely they have some reference(s) from somewhere. All
> I can see that they were loaded by 'class loader 0x0000000021005760a
> 'org/apache/catalina/loader/WebappClassLoader'. Is this another form
> of classloader leak or something else? Any idea?

Use a profiler, trace the GC roots and figure out why the references are
being retained.

Mark

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Mime
View raw message