【发布时间】:2013-05-07 14:32:02
【问题描述】:
我是 linux 新手,刚刚部署了一个 java 程序以在 linux 服务器上运行。我尝试使用 jconsole 从我的 windows 机器连接到 linux 机器,但出现错误。
连接失败:远程端点的非 JRMP 服务器
我在网上搜索并发现以下建议是运行以下内容:
java -Dcom.sun.management.jmxremote -Dcom.sun.management.jmxremote.port=
[YOUR PORT] -Dcom.sun.management.jmxremote.ssl=
false -Dcom.sun.management.jmxremote.authenticate=false -jar [YOUR JAR NAME]
我在批处理文件中输入了以下内容并执行了它。然后我尝试使用以下命令使用 jconsole 进行连接
service:jmx:rmi:///jndi/rmi://ipaddress:port/jmxrmi
按照建议但仍然不能(连接失败:重试)/
【问题讨论】:
-
在linux上调用进程时通过设置hostname为ipaddress解决问题