user3926784
user3926784

Reputation:

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:

enter image description here

enter image description here

enter image description here

What am I missing?

Thanks!

Upvotes: 13

Views: 20689

Answers (1)

hamilton.lima
hamilton.lima

Reputation: 1920

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 &

Upvotes: 7

Related Questions