How to monitor a Java remote app with VisualVM
Filipe Mesquita
Posted on January 6, 2023
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!
đź’– đź’Ş đź™… đźš©
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
githubcopilot AI Innovations at Microsoft Ignite 2024 What You Need to Know (Part 2)
November 29, 2024