Monitor Zephyr application using JMX

February 04, 2015

The Java virtual machine (Java VM ) has built-in instrumentation that enables you to monitor and manage it using the Java Management Extensions (JMX) technology. These built-in management utilities are often referred to as out-of-the-box management tools for the Java VM. You can also monitor any appropriately instrumented applications using the JMX API.

ZephyrServer is installed as a Windows service. This approach uses tomcat7w.exe and avoids direct registry changes.

  1. Using command line, cd <zephyr>/tomcat/bin
  2. run .\tomcat7w.exe //ES//ZepyrServer
  3. It opens a UI, in third tab, add the java options for JMX< for ex:8081>
-Djava.rmi.server.hostname=<for ex:127.0.01>

   4.  Save and quit. Restart ZephyrServer

Open VisualVM - go to bin folder under JDK  and double click on visualvm icon - e.g. 

C:\Program Files\Java\jdk1.7.0_51\bin\jvisualvm.exe

Once the window for Visualvm opens click on "remote"in the left pane and click on "Monitor" and "Thread"tabs for heap or memory monitoring and thread monitoring which also provides options for Heap dump and Thread dumps to as shown in the screenshots below