Memory leak in Parallel class loading
Vasudevan, Sattish
savasudevan at ebay.com
Mon Jul 28 09:01:21 UTC 2014
Hi team,
We encountered a memory leak issue while testing one of our apps. When probed the heap dump using MAT, we found
6500 instances of our class loaded by org.jboss.modules.ModuleClassLoader occupy 45% of our heap size.
We also noticed that reference tree ends in java.util.concurrent.ConcurrentHashMap.
>From the above details, the issue seems to be related parallel class loading introduced in Java 7.Java 7 introduced support for parallel classloading.
http://openjdk.java.net/groups/core-libs/ClassLoaderProposal.html
The solution for parallel classloading was to add to each class loader a ConcurrentHashMap, referenced through a new field, parallelLockMap.
This contains a mapping from class names to Objects to use as a classloading lock for that class name.
Want to know is their way by which we can disable parallel class loading to confirm on the leak suspect. We use oracle jdk 1.7 Update 45.
Thanks
Sattish.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.openjdk.java.net/pipermail/hotspot-gc-use/attachments/20140728/9492d266/attachment-0001.html>
More information about the hotspot-gc-use
mailing list