A memory leak happens in JMX Client application which repeats connecting and closing JMXConnector over remoting-jmx in JBoss EAP 6.x/7.x

Solution Verified - Updated

Environment

  • Red Hat JBoss Enterprise Application Platform (EAP)
    • 6.x
    • 7.x
  • JMX client application using remoting-jmx

Issue

A memory leak happens in JMX Client application which repeats connecting and closing JMXConnector over remoting-jmx. A new java.lang.ThreadGroup is created every JMXConnectorFactory#connect().

Resolution

Root Cause

Components

This solution is part of Red Hat’s fast-track publication program, providing a huge library of solutions that Red Hat engineers have created while supporting our customers. To give you the knowledge you need the instant it becomes available, these articles may be presented in a raw and unedited form.