Pages

Friday, March 5, 2010

Getting jconsole working with WebSphere Application Server

WebSphere application Server does NOT have good tools to deal with JMX mbeans exposed by WebSphere component services. The jConsole utility provided by the JVM gives us a window to all the WebSphere JMX Mbeans and helps execute operations on the mbeans using a console. This is a precursor to any admin work using wsadmin $AdminControl operations. A script has been provided below for getting jconsole working with WebSphere Application Server 7.0.0.*

This script has been validated with WebSphere Application Server 7 on windows with no admin. security. Make appropriate changes to get it running in unices. Please set HOST_NAME, RMI_CONNECTOR_PORT and WAS_HOME before running this script. All these three are available in the WebSphere Application Server SystemOut.log
echo service:jmx:iiop://localhost:2809/jndi/JMXConnector
set HOST_NAME=localhost
set RMI_CONNECTOR_PORT=2819
set WAS_HOME=C:\was7\install
set JAVA_HOME=%WAS_HOME%\java
set CLASSPATH=%CLASSPATH%;%JAVA_HOME%\lib\jconsole.jar;%JAVA_HOME%\lib\tools.jar;%WAS_HOME%\runtimes\com.ibm.ws.admin.client_7.0.0.jar;
%JAVA_HOME%\bin\jconsole.exe -J-Djava.class.path=%CLASSPATH% service:jmx:iiop://%HOST_NAME%:%RMI_CONNECTOR_PORT%/jndi/JMXConnector

No comments:

Post a Comment

Note: Only a member of this blog may post a comment.