]
Darran Lofthouse updated REMJMX-95:
-----------------------------------
Issue Type: Bug (was: Feature Request)
Fix Version/s: 2.0.1.CR2
RemotingConnector violates JMXConnector#connect contract and leads to
threads hanging around
--------------------------------------------------------------------------------------------
Key: REMJMX-95
URL:
https://issues.jboss.org/browse/REMJMX-95
Project: Remoting JMX
Issue Type: Bug
Components: Connection
Affects Versions: 2.0.0.Final
Environment: Wildfly 8.2.0
Reporter: Sergiy Barlabanov
Assignee: Darran Lofthouse
Fix For: 2.0.1.CR2
The javadoc of javax.management.remote.JMXConnector#connect says that "If connect
has already been called successfully on this object, calling it again has no
effect.".
But this does not work with org.jboss.remotingjmx.RemotingConnector. Every connect result
in a creation of a remoting endpoint with the corresponding io/worker threads, which are
not closed when close() method is called. Only the threads from the first connect()
invocation are closed, all threads created from the subsequent connect() invocations are
not closed and stay alive until the VM shutdown.
Our application currently crashes after 10 minutes running - it pulls some JMX data
periodically and after some time, the VM refuses to create new threads.