Knowledge Base
The VMware Knowledge Base provides support solutions, error messages and troubleshooting guides

|
Setting up Tomcat in the Windows platform for monitoring by jconsole or jvisualvm (2008410)
Purpose
When Tomcat is run under a service wrapper in Windows, it is generally inaccessible to local monitoring because the Java process is hidden by the service wrapper.
This article provides information on opening a JMX port for access by jconsole, jvisualvm, and other profilers. This approach can also be used to enable monitoring from a remote machine.
Resolution
- Click the Java tab in the Tomcat monitor.
- Add these JVM options:
-Dcom.sun.management.jmxremote
-Dcom.sun.management.jmxremote.port=4321
-Dcom.sun.management.jmxremote.authenticate=false
-Dcom.sun.management.jmxremote.ssl=false
The port number 4321 can be any free port that will be used by the JMX listener.
- Stop and restart the Tomcat service.
You can now start jconsole or jvisualvm from a command window (jconsole.exe and jvisualvm.exe are supplied by the JDK) and specify a connection to localhost with the port given for the JMX listener.
Additional Information
Ensure that the remote JMX access is secured as it allows complete control over the server.
For more information on securing the JMX connection, see Monitoring and Management Using JMX Technology.
Note: The preceding link was correct as of November 15, 2011. If you find the link is broken, provide feedback and a VMware employee will update the link.
Request a Product Feature
To request a new product feature or to provide feedback on a VMware product, please visit the Request a Product Feature page.
Actions
KB:
- Updated:
- Categories:
- Languages:
- Product Family:
- Product(s):
- Product Version(s):

