How can I connect to Weblogic remotely using JConsole?

What URL, port, and web server settings should I use?

+8
weblogic jmx jconsole
source share
3 answers

It depends on whether you want to connect to the MBean server of the WebLogic server (Domain, Runtime, Edit) or the MBean platform (JDK) (see MBean Servers ).

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

A connection to the MBean server platform is similar to any other JVM (see How to activate JMX on my JVM for access from jconsole ), but you would not see WebLogic MBeans if you did not configure WebLogic to use it (see Registering MBeans in the MBean platform JVM ).

+11
source share

Try adding this to the server startup options. Change the port (7011) to whatever you prefer. Then you can use JConsole by specifying the remote server "{host}: {port}"

Note. {host} does not contain the http: // prefix.

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

In addition, you probably do not want to disable authentication like this in a production environment, but the above parameters should help you in testing. When using this, you do not need to provide a username / password in JConsole.

+4
source share

You need to enable the remote server to listen on a specific port for JMX -http: //download.oracle.com/javase/1.5.0/docs/guide/management/agent.html#remote

The URL will be your server listening address. You also have the option of requiring authentication to limit the use of the debug port.

+2
source share

Source: https://habr.com/ru/post/651175/


All Articles