English 中文(简体)
MBean Simple Graph Monitor
原标题:

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?

最佳回答

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.

alt text http://www.oracle.com/technology/products/jrockit/missioncontrol/new_and_noteworthy/3.1.0/images/console/new_dials_look.png

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
问题回答

You can plot JMX numeric values in VisualVM, double-clicking on numeric attribute values will display a chart that plots changes in that numeric value.

For example, double-clicking on the CollectionTime attribute of the Garbage Collector MBean MarksweepCompact will plot the time spent performing garbage collection.

@see http://visualvm.java.net/mbeans_tab.html

Yes, if double-clicking on a numeric attribute value, jconsole will automatically start polling and plotting a real-time chart on that attribute. This is exactly what I am looking for, exciting... But, I d like to point out this only applies to a read-only attribute with a numeric value.

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.

JRDS will do what you want. It is a bit tricky to setup, but once you figure out the configuration, you can have it create graphs for your JMX attributes. It uses RRD4j (like rrd but in java) under the covers so it can keep "rolled up" historical data for you as well.





相关问题
How to package Java Agent as Visual VM plugin

I have written a Java Agent along with an SWT GUI for controlling the agent. https://github.com/mchr3k/org.intrace/wiki I want to package this library into a plugin for VisualVM to allow the agent ...

Interpreting the results of a VisualVM profiling session

I have an application that writes some data (about 15mb in 80k tuples) into an SQLite database using this jdbc-driver on Mac OS X. This is done using transactions, the largest of which contains about ...

VisualVM can t connect to any PID on Snow Leopard?

No matter what I start up, Visual VM just gives me "Unknown Application" and "Not supported for this JVM" on my Mac. I ve tried JBoss, Jetty, Eclipse - just to see if it would be able to identify / ...

Still cannot connect Tomcat 6 remotely via VisualVM

If checked the other questions regarding this issue but so far no soultion. Here is my setup: TC6 runs on a debian vm on my macbook. in /etc/default/tomcat6.0 I have following options set: ...

MBean Simple Graph Monitor

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 ...

Total method time in Java VisualVM

In Java VisualVM, is there any way to display total method time, rather than "self time"? (The latter is not particularly useful, since it doesn t tell you anything about how much time methods ...

VisualVM breaks jetty

I m trying to profile application that is run by "mvn jetty:run", when I connect VisualVM to it and click on Profile jetty crashes with: Profiler Agent: Waiting for connection on port 5140 (Protocol ...

热门标签