Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can I connect to Weblogic remotely using JConsole?

Which URL, port and weblogic server side settings do I need to use?

like image 200
yazz.com Avatar asked Jan 17 '11 17:01

yazz.com


2 Answers

It depends if you want to connect to a WebLogic MBean server (Domain, Runtime, Edit) or platform (JDK) MBean server (See MBean Servers).

Connecting with JConsole to a WebLogic MBean server is usually a real pain:

  1. Enable Anonymous Admin Lookup if version is lower than 10.3 (See WebLogic anonymous user permissioning)
  2. Enable IIOP Protocol for Admin Server and Application Servers (See Enable and configure IIOP)
  3. Launch jconsole with a custom commandline (See Managing WebLogic servers with JConsole)

Connecting to platform MBean server is like any other JVM (See How to activate JMX on my JVM for access with jconsole), but you would not see any WebLogic MBeans unless you configure WebLogic to use it (See Registering MBeans in the JVM Platform MBean Server).

like image 65
fglez Avatar answered Sep 17 '22 22:09

fglez


Try adding this to your server start-up parameters. Change the port (7011) to whatever you prefer. You should be able to use JConsole then by specifying the remote server "{host}:{port}"

Note: the {host} does not include a "http://" prefix.

-Dcom.sun.management.jmxremote 
-Dcom.sun.management.jmxremote.port=7011
-Dcom.sun.management.jmxremote.ssl=false
-Dcom.sun.management.jmxremote.authenticate=false

Also, you probably don't want to disable authentication like this in a production environment, but the parameters above should help you with testing. When using this, you won't need to specify a username/password in JConsole.

like image 21
Kal Avatar answered Sep 17 '22 22:09

Kal