I have some JMX Beans that expose performance information in my application. I would like to have some facility to plot an attribute of an MBean in a graph for monitoring (a la Windows Perf Mon). I love the stuff that comes with JConsole and VisualVM, but I have not been able to find a nice plugin that will let me select an attribute on an MBean and monitor it. Anyone have any ideas?
A:
Polling the JMX variables is relatively straightforward. The presentation is perhaps more of a pain.
For the charting component, you may want to check out JFreeChart. Although it's not a real-time charting package, it's actually quite performant for these type of applications. Check out some samples here.
Brian Agnew
2009-12-14 16:36:15
Thanks for the info, I will look into the link. I was hoping there would be an existing package for this functionality. Monitoring and plotting metrics for an MBean should be something people do regularly.
noplay
2009-12-14 17:48:32
Yes - I'm somewhat surprised there isn't a configurable app to do this easily available
Brian Agnew
2009-12-14 18:01:24
+1
A:
You can try JRockit Mission Control. It allows you to customize the user interface with your own graphs, tables and even dials for the MBean attributes you want to monitor.
The customized ui is stored in a workspace directory, by default in your home directory, but you can have several workspaces and start up Mission Control with the one you want to use.
jrcm.exe -data c:/application1
jrcm.exe -data c:/application2
Kire Haglin
2009-12-15 09:14:22
Thanks, I started looking at that, definitely looks interesting and what I need.
noplay
2009-12-15 13:36:16