/** Removes the JMX counters. */ public void cleanup() { if (initialized) { if (threadPoolSettings != null) { threadPoolSettings.cleanup(); } comp.unregisterComponentTree(); } }