[collectd] Generic JMX plugin and JVM restart

Bryan Varner bryan at varnernet.com
Tue Sep 23 18:21:41 CEST 2014


I had this issue with JBoss (and GlassFish at another engagement). Our solution was to bounce Collectd as part of the CI. I didn’t like that solution either.


You may want to check out my (in development, but working) FastJMX plugin here:
https://github.com/bvarner/collectd-fast-jmx

It handles connections / deploy undeploy notifications very differently that the GenericJMX plugin does, and I’d welcome any feedback you may have!

My efforts the last week or so have been focused in the issue_5 branch, but I believe Master should work pretty well for most cases where GenericJMX was sufficient.

I’m currently dealing with a special case where I needed collectd to handle ~1200 metrics spread across 9 hosts, and the GenericJMX plugin just couldn’t do it. :-)

Regards,
-Bryan





On Sep 23, 2014, at 12:13 PM, Rahul Agarwal <RAgarwal at livegamer.com> wrote:

> Hello,
> I have the GenericJMX plugin installed and it works great (I got all the metrics working from contrib/GenericJMX.conf).
>  
> I am monitoring a Jboss server. The problem I have is that when my JBoss gets re-deployed (new builds via CI) the collectd collections stop working. I have to restart collectd for it to start working again. Some Exceptions in the logs are as below. Restarting collectd on every host with deploys would be a deal breaker.
> Maybe there is some config that forces it to re-create a connection or something else I am missing?
> Any help will be much appreciated.
>  
> Thanks
>  
> [2014-09-23 16:09:10] GenericJMXConfValue.query: getAttribute failed: javax.management.InstanceNotFoundException: java.lang:type=MemoryPool,name=Code Cache is not registered.
> [2014-09-23 16:09:10] GenericJMXConfValue.query: Querying attribute Usage failed.
> [2014-09-23 16:09:10] GenericJMXConfValue.query: getAttribute failed: javax.management.InstanceNotFoundException: java.lang:type=MemoryPool,name=CMS Perm Gen is not registered.
>  
> _______________________________________________
> collectd mailing list
> collectd at verplant.org
> http://mailman.verplant.org/listinfo/collectd

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.verplant.org/pipermail/collectd/attachments/20140923/59f7e6f0/attachment.html>


More information about the collectd mailing list