我认为 weblogic 上启用了 jmx。我有日志
<Jun 3, 2015 12:14:08 PM CEST> <Info> <Management> <BEA-141187> <Java system properties are defined as follows:
...
com.sun.management.jmxremote.authenticate = false
com.sun.management.jmxremote.port = 8888
com.sun.management.jmxremote.ssl = false
...
我还看到
<Jun 2, 2015 12:23:47 PM CEST> <Info> <JMX> <BEA-149512> <JMX Connector Server started at service:jmx:iiop://1.2.3.4:7001/jndi/weblogic.management.mbeanservers.runtime .>
<Jun 2, 2015 12:23:47 PM CEST> <Info> <JMX> <BEA-149512> <JMX Connector Server started at service:jmx:iiop://1.2.3.4:7001/jndi/weblogic.management.mbeanservers.edit .>
<Jun 2, 2015 12:23:47 PM CEST> <Info> <JMX> <BEA-149512> <JMX Connector Server started at service:jmx:iiop://1.2.3.4:7001/jndi/weblogic.management.mbeanservers.domainruntime .>
但不可能与 Visual VM 建立连接。
在add jmx connection
我尝试过
1.2.3.4:7001
1.2.3.4:8888
有或没有凭证。但结果总是相同的:cannot connect to ...
编辑
也尝试过jmap
。
在本地服务器上使用 pid 可以正常工作。使用 则localhost:8888
无法正常工作。
远程,jmap -permstat 1.2.3.4:888
给我
Attaching to remote server 1.2.3.4:8888, please wait...
Error attaching to remote server: java.rmi.NotBoundException: Not bound: "SARemoteDebugger" (only bound name is "jmxrmi")
sun.jvm.hotspot.debugger.DebuggerException: java.rmi.NotBoundException: Not bound: "SARemoteDebugger" (only bound name is "jmxrmi")
at sun.jvm.hotspot.RMIHelper.lookup(RMIHelper.java:115)
at sun.jvm.hotspot.HotSpotAgent.connectRemoteDebugger(HotSpotAgent.java:517)