Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

VisualVM connects to a remote JVM via RMX connection and needs a proper setup (e.g. prertty well laid out here: darksideofthedev.com/java-profiling-with-visualvm-in-docker-container/). The biggest obstacle especially on the macs is the address of the rmi server: it is not possible out of the box to communicate directly from macos host to the running HyperKit vm and causes tedious hassle. However, one can specify 0.0.0.0 as rmi server, which will enable all the interfaces for connection. The eventual JVM startup properties might look like:

{{-Dcom.sun.management.jmxremote

-Dcom.sun.management.jmxremote.local.only=false

-Dcom.sun.management.jmxremote.authenticate=false

-Dcom.sun.management.jmxremote.port=9010

-Dcom.sun.management.jmxremote.rmi.port=9010

-Djava.rmi.server.hostname=0.0.0.0

-Dcom.sun.management.jmxremote.ssl=false}}