hyperic / hq

Hyperic open source
108 stars 90 forks source link

JMX-plugin does not reconnect to JBoss MBean-Server #7

Open frfoe opened 9 years ago

frfoe commented 9 years ago

I'm using JMX-plugin to fetch metrics from JBoss servers. After a failure/restart of a JBoss instance the hyperic agent does not reconnect to the MBean server of the JBoss. The agent log contains the following line:

[ScheduleThread@426] Metric unreachable: Can't connect to MBeanServer url [service:jmx:remoting-jmx://ffo:20152] port [null] username [ivu]: org.jboss.remoting3.NotOpenException: Writes closed

The issue seems to be related to a reuse of a cached JMX connecor in hq-pdk/MxUtil.java, after the JBoss failed.

Hyperic: 5.8.2, JBoss 7.3.4

Regards

Frank