Java Application Performance Counters Viewed in Perfmon

I have a Java application running on Tomcat, and I would like to track counters using Windows Performance Monitor. Is this possible using the JMX adapter for Java MBeans or in other ways?

+5
source share
5 answers

Since you noted this with JMX and MBeans, I assume your counters are accessible from Java MBeans. If so, you can use the jconsole that comes with the Java SDK to monitor counters. Once you find your MBean in the MBeans tab, double-click on the value and draw a good line graph for easy monitoring.

See the JConsole Guide for more details .

+1
source

The following tutorial might be useful: http://www.developer.com/java/ent/article.php/3087741/Hooking-to-PerfMon-from-Java.htm

It shows how a Java application defines a custom counter that can be monitored in Perfmon. This basically boils down to using the extension DLL for the performance monitor and communicating with it through a memory mapped file. You can then connect the JMX counters to a similar mechanism so that they can be tracked with Perfmon.

+1
source

, JMXConnection , MBeans. , , JMX. - , JConsole, . JProfiler, JConsole . , .

0

All Articles