Sun JVM Plugin
Download
- Included in the HQ distribution
- Grab the latest source code:
svn co http://svn.hyperic.org/projects/hq/trunk hyperic-hq
Configuring Sun JVM for Monitoring
Follow the steps to configure your JVM for monitoring and to add it to HQ inventory.
To enable HQ to discovery the Sun JVM, the JVM must be configured for JMX monitoring. For instructions, see Monitoring and Management Using JMX on the Sun web site.
Once your JVM is configured for JMX monitoring, define it as a server in HQ. Browse to the platform where the JVM is located view its monitoring page. Select "New Server" from the "Tools Menu" in the upper right corner. On the next page, name your JVM and select "Sun JVM 1.5" from the drop-down menu. In the "Install Path" field, enter your $JAVA_HOME.
On the subsequent page, click the "Configuration Properties" link, highlighted in yellow. If you've set up password authentication for your JMX monitoring, you'll have to input your user and password here. Double-check the jmx.url field and set the port number accordingly. To track configuration and log files, add in the appropriate info after checking the boxes "server.log_track.enable" and "server.config_track.enable". Make sure the box for "Auto-Discover Garbage Collectors and Memory Pools?" is checked. After clicking ok, HQ Server will start receiving the default metrics for that JVM, although it will take a few minutes for them to appear.