edgar wang created LOG4J2-2216:
----------------------------------

             Summary: JMXFactoryConnector is not closed in ClientGui
                 Key: LOG4J2-2216
                 URL: https://issues.apache.org/jira/browse/LOG4J2-2216
             Project: Log4j 2
          Issue Type: Bug
          Components: JMX
    Affects Versions: 2.8, 2.6
            Reporter: edgar wang


JMXFactoryConnector is not closed in ClientGui. This potentially could cause a 
thread leak according to 
[https://stackoverflow.com/questions/564589/dynamic-proxies-with-jmx-can-cause-thread-leaks]
 . Since JMXFactoryConnector implements closable and autoclosable, it should be 
wrapped in a try with resources or the connector should be closed somewhere.

We've seen several unclosed JMX threads in our production environment and 
believe this could be a reason why. 

Could anyone advise?

Thanks!



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to