Class PluginClassLoaderLeakSentinel
java.lang.Object
com.xebialabs.xlrelease.osgi.spring.PluginClassLoaderLeakSentinel
A production safety net, independent of the CI-only leak-gate test suite: after
PluginTeardown.teardown(com.xebialabs.xlrelease.osgi.spring.PluginRuntime) completes, watches whether a plugin's classloader
actually becomes collectible within a bounded delay, and logs at ERROR - with the
plugin's symbolic name and install/teardown timestamps - if it doesn't. Purely observational:
never throws, never forces GC, never affects any other plugin or host behavior.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidwatch(PluginRuntime runtime) Starts watchingruntime's classloader for collection.
-
Constructor Details
-
PluginClassLoaderLeakSentinel
public PluginClassLoaderLeakSentinel()
-
-
Method Details
-
watch
Starts watchingruntime's classloader for collection. Call once, afterPluginTeardown.teardown(com.xebialabs.xlrelease.osgi.spring.PluginRuntime)has released every reference the host itself holds.
-