Using jconsole with Websphere


The jconsole tool is a JMX-compliant graphical tool for monitoring a Java virtual machine. It can monitor both local and remote JVMs. You can read more about it here…

It has been introduced with Java 1.5 and can also be used with the Websphere Appserver. Sander Hautvast has proposed a configuration based on a Service integration Bus.

Below, I shall outline a simpler way that also works:
1. Create a file named /my/path/management.properties with the following contents:

com.sun.management.jmxremote.port=9999
com.sun.management.jmxremote.authenticate=false
com.sun.management.jmxremote.ssl=false

2. Next, you need to edit the Generic JVM arguments of your server (via the administrative console: Application servers > server1 > Process definition > Java Virtual Machine) :
-Djavax.management.builder.initial= -Dcom.sun.management.jmxremote -Dcom.sun.management.config.file=/my/path/management.properties

3. Start jconsole from your WAS_HOME/java/bin directory and login with localhost:9999, as defined in your management.properties file (Note: not recommended for production use, since security is disabled for that port).

4. You’re done. Have a look at the threads, the memory consumption, the mbeans etc.

, , ,

Comments are closed.