Thursday, March 11, 2010

JConsole

Steps to use JConsole on remote process:

1) Add the following command in Weblogic server startup script:
-Dcom.sun.management.jmxremote

2) Enable Anonymous User under /Security

3) Enable IIOP under Servers//Protocols/IIOP

4) Provide user-name and password for IIOP under advance options

For JConsole:

a) In the JConsole window, select Connection > New Connection.

b) In the Connect to Agent window, select the Advanced tab.

c) On the Advanced tab, in the JMX URL box, enter:

service:jmx:rmi:///jndi/iiop://host:port/weblogic.management.mbeanservers.runtime

Where host:port is the host name and port of the Weblogic Server instance that hosts your MBeans.

For example:
service:jmx:rmi:///jndi/iiop://localhost:7001/weblogic.management.mbeanservers.runtime

d) In the User Name and Password boxes, enter the default IIOP user name and password.
e) Click Connect.

Reference URLs: http://download.oracle.com/docs/cd/E13222_01/wls/docs103/jmxinst/accesscust.html
http://java.sun.com/developer/technicalArticles/J2SE/jconsole.html

No comments:

Post a Comment