Search code examples
cxfmonitoringjmxapache-servicemixfuseesb

programmatically get server load information from Apache ServiceMix using JMX


Is it possible to get the server load information of a webserver deployed on a ServiceMix / Fuse ESB.

I dont want to use Jconsole but get the information by running a java file and writing the values into text file.

Could someone point me to some code that I can run on my machine?

Cheers, Kunal


Solution

  • You can also intall jolokia i ServiceMix which exposes a REST interface over JMX. This makes it much easier for non Java developers and programming languages to access the metrics. It's just a HTTP call to get the data.

    http://www.jolokia.org/

    We use this library for the http://hawt.io management console so we can get the data easily from a moderne HTML5 web console.