简体   繁体   中英

Cannot connect to JMX/RMI server with VisualVM for no apparent reason

I have my OSGi application launching with the following command in my remote machine:

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:

在此输入图像描述

在此输入图像描述

在此输入图像描述

What am I missing?

Thanks!

The comment from @Klara saved my day !! fixed my connection to the jstad

jstatd -J-Djava.security.policy=all.policy -J-Djava.rmi.server.hostname=hostname-goes-here &

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM