java 无缘无故无法使用 VisualVM 连接到 JMX/RMI 服务器
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/27783875/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Cannot connect to JMX/RMI server with VisualVM for no apparent reason
提问by
I have my OSGi application launching with the following command in my remote machine:
我在我的远程机器上使用以下命令启动了我的 OSGi 应用程序:
java -Dcom.sun.management.jmxremote \
-Dcom.sun.management.jmxremote.port=8080 \
-Dcom.sun.management.jmxremote.local.only=false \
-Dcom.sun.management.jmxremote.authenticate=false \
-Dcom.sun.management.jmxremote.ssl=false \
-jar bin/felix.jar
And in my local machine I have VisualVM from which I try to connect to the remote JVM instance:
在我的本地机器上,我有 VisualVM,我尝试从中连接到远程 JVM 实例:
What am I missing?
我错过了什么?
Thanks!
谢谢!
回答by hamilton.lima
The comment from @Klara saved my day !! fixed my connection to the jstad
@Klara 的评论拯救了我的一天!!修复了我与 jstad 的连接
jstatd -J-Djava.security.policy=all.policy -J-Djava.rmi.server.hostname=hostname-goes-here &