Monitoring an IBM JVM with VisualVM
JDK6 update 7 and onward include a tool called VisualVM. VisualVM is a visual tool with monitoring and profiling capabilities for the JVM. With VisualVM you can:
When using a JMX connection to monitor the JVM please be aware that not all functionality can be used compared to monitoring a local JVM. Profiling memory is for example not possible.
The above configuration was tested on:
- Monitor heap usage
- Monitor CPU usage
- Monitor Threads
- Initiate garbage collections
- Profile CPU and memory
- And more…
- navigate to: Server -> Server Types -> WebSphere application servers ->[SERVER_NAME]
- Expand Java and Process Management and click Process definition
- Click Java Virtual Machine
- In the Generic JVM arguments field append the following properties: -Djavax.management.builder.initial= -Dcom.sun.management.jmxremote -Dcom.sun.management.jmxremote.authenticate=false -Dcom.sun.management.jmxremote.ssl=false -Dcom.sun.management.jmxremote.port=1099
- Restart the server
When using a JMX connection to monitor the JVM please be aware that not all functionality can be used compared to monitoring a local JVM. Profiling memory is for example not possible.
The above configuration was tested on:
- Windows 7 64-bit
- IBM JDK1.6 64 bit
- WebSphere Application Server version 7.0