JRMP连接建立期间的JConsole错误

时间:2018-02-14 10:03:25

标签: java wildfly jmx

我正在尝试将jconsole连接到我的wildfly 11实例,但我在连接期间遇到错误。

我已经以某种方式设置它,以便我可以访问http://<ip>:8087上的管理门户,如果我正确理解我的配置,我应该能够在同一端口上连接jconsole。但是我在运行jconsole -debug <ip>:8087

时遇到异常
java.rmi.ConnectIOException: error during JRMP connection establishment; nested exception is: 
    java.net.SocketTimeoutException: Read timed out
    at sun.rmi.transport.tcp.TCPChannel.createConnection(TCPChannel.java:304)
    at sun.rmi.transport.tcp.TCPChannel.newConnection(TCPChannel.java:202)
    at sun.rmi.server.UnicastRef.newCall(UnicastRef.java:338)
    at sun.rmi.registry.RegistryImpl_Stub.lookup(RegistryImpl_Stub.java:112)
    at sun.tools.jconsole.ProxyClient.checkSslConfig(ProxyClient.java:234)
    at sun.tools.jconsole.ProxyClient.<init>(ProxyClient.java:127)
    at sun.tools.jconsole.ProxyClient.getProxyClient(ProxyClient.java:475)
    at sun.tools.jconsole.JConsole$3.run(JConsole.java:524)
Caused by: java.net.SocketTimeoutException: Read timed out
    at java.net.SocketInputStream.socketRead0(Native Method)
    at java.net.SocketInputStream.socketRead(SocketInputStream.java:116)
    at java.net.SocketInputStream.read(SocketInputStream.java:171)
    at java.net.SocketInputStream.read(SocketInputStream.java:141)
    at java.io.BufferedInputStream.fill(BufferedInputStream.java:246)
    at java.io.BufferedInputStream.read(BufferedInputStream.java:265)
    at java.io.DataInputStream.readByte(DataInputStream.java:265)
    at sun.rmi.transport.tcp.TCPChannel.createConnection(TCPChannel.java:246)
    ... 7 more

在我的standalone.xml中为wildfly设置了jmx子系统,如下所示:

    <subsystem xmlns="urn:jboss:domain:jmx:1.3">
        <expose-resolved-model/>
        <expose-expression-model/>
        <remoting-connector use-management-endpoint="true"/>
    </subsystem>

在我的socket-binding-group下我有这个绑定:

    <socket-binding name="management-http" interface="management" port="${jboss.management.http.port:8087}"/>

来自远程连接器上的documentation

  

use-management-endpoint如果为true,则连接器将使用管理端点,否则将使用远程处理子系统

所以我想念一些事情或为什么我不能连接?

我也尝试过连接更新的类路径

0 个答案:

没有答案