我認為jmx在weblogic上啟用了。我有我的日誌
<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 .>
但不可能與視覺虛擬機有連結。
在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)