How to monitor a Java remote app with VisualVM

filipemesquita

Filipe Mesquita

Posted on January 6, 2023

How to monitor a Java remote app with VisualVM

Add the following JVM arguments to the remote app:
-Djava.rmi.server.hostname=[enter_hostname_here]
-Dcom.sun.management.jmxremote
-Dcom.sun.management.jmxremote.port=[enter_port_here]
-Dcom.sun.management.jmxremote.ssl=false
-Dcom.sun.management.jmxremote.authenticate=false
-Dcom.sun.management.jmxremote.local.only=false

Open VisualVM locally and setup a new JMX connection with SSL disabled.

Note: make sure the server is not open to the public internet!

đź’– đź’Ş đź™… đźš©
filipemesquita
Filipe Mesquita

Posted on January 6, 2023

Join Our Newsletter. No Spam, Only the good stuff.

Sign up to receive the latest update from our blog.

Related