Usage Note 41565: Using the jstatd tool and Java Management Extensions to remotely monitor a Java virtual machine
Some Java virtual machines (JVMs) enable remote monitoring. This note explains how to enable this feature on the Sun HotSpot JVM, versions 1.5 and 1.6, using either the jstatd daemon or Java Management Extensions (JMX).
Remote Monitoring via the jstatd Daemon
This technique requires that you have the jstatd daemon running on the same machine as the target JVM. Once the daemon is running, it listens on a specified port. That port must be available to the remote monitoring tool.
To start the jstatd daemon, follow these steps:
- Create a permissions policy (for example, jstatd.all.policy) that contains the following contents:
grant codebase "file:${java.home}/../lib/tools.jar" {
permission java.security.AllPermission;
};
- Start the jstatd daemon, and specify the policy file and the port that you want to use. The daemon is found in the Java Development Kit (JDK) bin directory. Note: The location for that directory depends on the operating environment.
Remote Monitoring via JMX
To monitor a Java virtual machine (JVM) via JMX, follow these steps:
- Add the following arguments to the target JVM:
-Dcom.sun.management.jmxremote.authenticate=false
-Dcom.sun.management.jmxremote.ssl=false
-Dcom.sun.management.jmxremote.port=3333
- Restart the JVM so that the new arguments take effect.
- Verify that the JMX port (3333 in this example) is open and listening. Once you verify that the port is open and listening, you can connect to the port for remote monitoring.
Operating System and Release Information
SAS System | Java Development Kit | z/OS | | |
Microsoft® Windows® for x64 | | |
Microsoft Windows 95/98 | | |
Microsoft Windows 2000 Advanced Server | | |
Microsoft Windows 2000 Datacenter Server | | |
Microsoft Windows 2000 Server | | |
Microsoft Windows 2000 Professional | | |
Microsoft Windows NT Workstation | | |
Microsoft Windows Server 2003 Datacenter Edition | | |
Microsoft Windows Server 2003 Enterprise Edition | | |
Microsoft Windows Server 2003 Standard Edition | | |
Microsoft Windows Server 2003 for x64 | | |
Microsoft Windows Server 2008 | | |
Microsoft Windows Server 2008 for x64 | | |
Microsoft Windows XP Professional | | |
Windows 7 Enterprise 32 bit | | |
Windows 7 Enterprise x64 | | |
Windows 7 Home Premium 32 bit | | |
Windows 7 Home Premium x64 | | |
Windows 7 Professional 32 bit | | |
Windows 7 Professional x64 | | |
Windows 7 Ultimate 32 bit | | |
Windows 7 Ultimate x64 | | |
Windows Millennium Edition (Me) | | |
Windows Vista | | |
Windows Vista for x64 | | |
64-bit Enabled AIX | | |
64-bit Enabled Solaris | | |
HP-UX IPF | | |
Linux for x64 | | |
Solaris for x64 | | |
*
For software releases that are not yet generally available, the Fixed
Release is the software release in which the problem is planned to be
fixed.
Date Modified: | 2011-04-21 13:50:44 |
Date Created: | 2010-11-11 10:12:11 |