Java 连接远程计算机时JConsole/JVisualVm空菜单

Java 连接远程计算机时JConsole/JVisualVm空菜单,java,jmx,jconsole,jvisualvm,Java,Jmx,Jconsole,Jvisualvm,我有一个java应用程序在serverA上运行,端口为1337。我可以用这个端口远程登录远程服务器,远程登录连接看起来还可以。但是当我尝试使用JConsole或JVisualVm从我的机器连接时,我得到的只是一个空白的白色屏幕 截图如下: 当我尝试其他远程机器时,根本没有问题,对于serverA,它没有显示任何内容,在命令行上也没有显示可能出现的错误 有解决这个问题的办法吗 编辑: 我使用的命令行选项是 -Dcom.sun.management.jmxremote \ -Dcom.sun.

我有一个java应用程序在serverA上运行,端口为1337。我可以用这个端口远程登录远程服务器,远程登录连接看起来还可以。但是当我尝试使用JConsole或JVisualVm从我的机器连接时,我得到的只是一个空白的白色屏幕

截图如下:

当我尝试其他远程机器时,根本没有问题,对于serverA,它没有显示任何内容,在命令行上也没有显示可能出现的错误

有解决这个问题的办法吗

编辑:

我使用的命令行选项是

-Dcom.sun.management.jmxremote \ -Dcom.sun.management.jmxremote.ssl=true \ -Dcom.sun.management.jmxremote.ssl.need.client.auth=true \ -Dcom.sun.management.jmxremote.port=1337 \ -Dcom.sun.management.jmxremote.authenticate=true \ -Dcom.sun.management.jmxremote.password.file=./config/jmxremote.password \ -Dcom.sun.management.jmxremote.access.file=./config/jmxremote.access \ -Dcom.sun.management.jmxremote\ -Dcom.sun.management.jmxremote.ssl=true\ -Dcom.sun.management.jmxremote.ssl.need.client.auth=true\ -Dcom.sun.management.jmxremote.port=1337\ -Dcom.sun.management.jmxremote.authenticate=true\ -Dcom.sun.management.jmxremote.password.file=./config/jmxremote.password\ -Dcom.sun.management.jmxremote.access.file=./config/jmxremote.access\ 编辑2:

Sep 17, 2013 10:59:13 AM RMIConnector connect FINER: [javax.management.remote.rmi.RMIConnector: rmiServer=RMIServerImpl_Stub[UnicastRef2 [liveRef: [endpoint:[remotehost:44457,javax.rmi.ssl.SslRMIClientSocketFactory@20c449e3](remote),objID:[2ea1fcfa:1400abe0c89:-7fff, -6056681295086157153]]]]] connecting... Sep 17, 2013 10:59:13 AM RMIConnector connect FINER: [javax.management.remote.rmi.RMIConnector: rmiServer=RMIServerImpl_Stub[UnicastRef2 [liveRef: [endpoint:[remotehost:44457,javax.rmi.ssl.SslRMIClientSocketFactory@20c449e3](remote),objID:[2ea1fcfa:1400abe0c89:-7fff, -6056681295086157153]]]]] finding stub... Sep 17, 2013 10:59:13 AM RMIConnector connect FINER: [javax.management.remote.rmi.RMIConnector: rmiServer=RMIServerImpl_Stub[UnicastRef2 [liveRef: [endpoint:[remotehost:44457,javax.rmi.ssl.SslRMIClientSocketFactory@20c449e3](remote),objID:[2ea1fcfa:1400abe0c89:-7fff, -6056681295086157153]]]]] connecting stub... Sep 17, 2013 10:59:13 AM RMIConnector connect FINER: [javax.management.remote.rmi.RMIConnector: rmiServer=RMIServerImpl_Stub[UnicastRef2 [liveRef: [endpoint:[remotehost:44457,javax.rmi.ssl.SslRMIClientSocketFactory@20c449e3](remote),objID:[2ea1fcfa:1400abe0c89:-7fff, -6056681295086157153]]]]] getting connection... Sep 17, 2013 11:00:27 AM RMIConnector connect FINER: [javax.management.remote.rmi.RMIConnector: rmiServer=RMIServerImpl_Stub[UnicastRef2 [liveRef: [endpoint:[remotehost:44457,javax.rmi.ssl.SslRMIClientSocketFactory@20c449e3](remote),objID:[2ea1fcfa:1400abe0c89:-7fff, -6056681295086157153]]]]] failed to connect: java.rmi.ConnectException: Connection refused to host: remotehost; nested exception is: java.net.ConnectException: Operation timed out Sep 17, 2013 11:00:27 AM RMIConnector close FINER: [javax.management.remote.rmi.RMIConnector: rmiServer=RMIServerImpl_Stub[UnicastRef2 [liveRef: [endpoint:[remotehost:44457,javax.rmi.ssl.SslRMIClientSocketFactory@20c449e3](remote),objID:[2ea1fcfa:1400abe0c89:-7fff, -6056681295086157153]]]]] closing. 2013年9月17日上午10:59:13连接连接器 FINER:[javax.management.remote.rmi.RMIConnector:rmiServer=RMIServerImpl_存根[UnicastRef2[liveRef:[endpoint:[remotehost:44457,javax.rmi.ssl。SslRMIClientSocketFactory@20c449e3](远程),对象:[2ea1fcfa:1400abe0c89:-7fff,-6056681295086157153]]]连接。。。 2013年9月17日上午10:59:13连接连接器 FINER:[javax.management.remote.rmi.RMIConnector:rmiServer=RMIServerImpl_存根[UnicastRef2[liveRef:[endpoint:[remotehost:44457,javax.rmi.ssl。SslRMIClientSocketFactory@20c449e3](远程),对象:[2ea1fcfa:1400abe0c89:-7fff,-6056681295086157153][3][3]正在查找存根。。。 2013年9月17日上午10:59:13连接连接器 FINER:[javax.management.remote.rmi.RMIConnector:rmiServer=RMIServerImpl_存根[UnicastRef2[liveRef:[endpoint:[remotehost:44457,javax.rmi.ssl。SslRMIClientSocketFactory@20c449e3](远程),对象:[2ea1fcfa:1400abe0c89:-7fff,-6056681295086157153][3][3]连接短截线。。。 2013年9月17日上午10:59:13连接连接器 FINER:[javax.management.remote.rmi.RMIConnector:rmiServer=RMIServerImpl_存根[UnicastRef2[liveRef:[endpoint:[remotehost:44457,javax.rmi.ssl。SslRMIClientSocketFactory@20c449e3](远程),对象:[2ea1fcfa:1400abe0c89:-7fff,-6056681295086157153][3][3]正在获取连接。。。 2013年9月17日上午11:00:27 RMI连接器连接 FINER:[javax.management.remote.rmi.RMIConnector:rmiServer=RMIServerImpl_存根[UnicastRef2[liveRef:[endpoint:[remotehost:44457,javax.rmi.ssl。SslRMIClientSocketFactory@20c449e3](远程),objID:[2ea1fcfa:1400abe0c89:-7fff,-6056681295086157153]-][]]连接失败:java.rmi.ConnectException:连接拒绝主机:remotehost;嵌套异常是: java.net.ConnectException:操作超时 2013年9月17日上午11:00:27关闭连接器 FINER:[javax.management.remote.rmi.RMIConnector:rmiServer=RMIServerImpl_存根[UnicastRef2[liveRef:[endpoint:[remotehost:44457,javax.rmi.ssl。SslRMIClientSocketFactory@20c449e3](远程),对象:[2ea1fcfa:1400abe0c89:-7fff,-6056681295086157153][3]]关闭。
问题描述相当模糊。端口1337是JMX连接器侦听的端口,还是自定义应用程序端口?您是否在应用程序JVM上启用了默认平台MBean服务器?用于连接应用程序的MBean服务器的连接字符串是什么?不太清楚您对MBean服务器的意思,但我正在使用java命令行选项启动端口。您可以将您使用的命令行选项添加到问题描述中吗?@JB我添加了这些选项。我已尝试重现问题,但没有成功。我要么正确设置密码和SSL,可以连接,要么根本拒绝连接。我建议,作为下一步,运行jvisualvm并查看日志文件-您可以在Help/About/Logfile下找到它,jvisualvm中的屏幕不应该是空白的-它应该至少显示一些信息。你能把一个JVisualVM的线程转储到空白屏幕上,并把它附加到日志中吗?