commit | 1f913c34789dce29120c18844faea18ff2d4d67d | [log] [tgz] |
---|---|---|
author | Chetan Mehrotra <chetanm@apache.org> | Thu May 15 06:02:47 2014 +0000 |
committer | Chetan Mehrotra <chetanm@apache.org> | Thu May 15 06:02:47 2014 +0000 |
tree | b487bfbaba25b194b1e0d403108b9dbc61d830c2 | |
parent | 11cd5a04243ab774b02fec8043514e304fc5cd24 [diff] |
[maven-release-plugin] prepare release org.apache.sling.extensions.classloader-leak-detector-1.0.0 git-svn-id: https://svn.apache.org/repos/asf/sling/trunk/contrib/extensions/leak-detector@1594775 13f79535-47bb-0310-9956-ffa450edef68
This bundle provides support for tracing classloader leaks which occur due to improper cleanup in bundles. Refer to SLING-3359 for background details
The bundle registers a Felix Configuration Printer which dumps out a list of suspected classloaders which are not getting garbage collected. it can be accessed at http://localhost:8080/system/console/status-leakdetector
Possible classloader leak detected Number of suspicious bundles - 1 * org.apache.sling.sample.leakdetector.bad-bundle (0.0.1.SNAPSHOT) - Classloader Count [2] - Bundle Id - 204 - Leaked classloaders - Identity HashCode - 4a273519, Creation time 31.01.2014 15:22:58.407
By default on Oracle JDK the classloaders and related classes from Permgen are not garbage collected by default. This bundle relies on Classloaders getting gced for it work. So to enable that pass on following arguments
-XX:+UseConcMarkSweepGC -XX:+CMSClassUnloadingEnabled