B Accessing WebLogic Server MBeans from JConsole Using WebLogic Install Client JARs

Learn how to access WebLogic Server MBeans from JConsole with the WebLogic Thin T3 client (wlthint3client.jar) or the Install client (weblogic.jar).

This appendix includes the following section:

Using JConsole with WebLogic Install Client JARs to Access WebLogic Server MBeans

Use this procedure to access WebLogic Server MBeans from JConsole with WebLogic install client JARs, wlthint3client.jar or weblogic.jar.

  1. From a command prompt, make sure that the JDK is on the path.
  2. Invoke JConsole with either the thin T3 client (wlthint3client.jar) or the install client (weblogic.jar) in the class path:
    1. To invoke wlthint3client.jar:
      • For Unix:
        $ jconsole -J-Djava.class.path=$JAVA_HOME/lib/jconsole.jar:$JAVA_HOME/lib/tools.jar:$WL_HOME/server/lib/wlthint3client.jar
      • For Windows:
        c:> jconsole -J-Djava.class.path=%JAVA_HOME%\lib\jconsole.jar;%JAVA_HOME%\lib\tools.jar;%WL_HOME%\server\lib\wlthint3client.jar
    1. To invoke weblogic.jar:
      • For Unix:
        $ jconsole -J-Djava.class.path=$JAVA_HOME/lib/jconsole.jar:$JAVA_HOME/lib/tools.jar:$WL_HOME/server/lib/weblogic.jar
      • For Windows:
        c:> jconsole -J-Djava.class.path=%JAVA_HOME%\lib\jconsole.jar;%JAVA_HOME%\lib\tools.jar;%WL_HOME%\server\lib\weblogic.jar

    Note:

    You must explicitly set the classpath using -J-Djava.class.path=option. The current classpath is not taken by JConsole.
  3. Set up remote connections with an MBean server:
    $ jconsole -J-Djmx.remote.protocol.provider.pkgs=weblogic.management.remote

    Note:

    If you are running JConsole on the same machine as your WebLogic Server instance, then start JConsole simply by executing the command jconsole at the command line.
  4. In the JConsole window, select Remote Process.
  5. In the Remote Process text box, enter the following URL:
    service:jmx:t3://[host address]:[wls server port]/jndi/weblogic.management.mbeanservers.domainruntime
    where host:port represents the host name and port of the WebLogic Server instance that hosts your MBeans. For example, localhost:7001.
  6. Enter the administrator role credentials for Username and Password fields.
  7. Click Connect.
  8. Click Insecure Connection.