Description of problem: The rhqserver plugin reads stats from the RHQ server using JMX. It fails to close the JMX connection to the RHQ server when the RHQ server resource component stops. Version-Release number of selected component (if applicable): 4.13.0-SNAPSHOT How reproducible: always Steps to Reproduce: 1. Inventory RHQ server 2. restart the plugin container of your agent repeatedly Actual results: OOMEs after a couple of restarts (cca 20) (this is due to the connection handling threads holding on to the plugin classloaders). Expected results: stable heap Additional info: