Loading...
четвер, 15 травня 2014 р.

How to monitor remote java app via JMX

Let's assume, we have some remote server and java application run there. We also have VisualVM on our localhost ,machine and just want to monitor that application status (for example, memory consumption). How to enable remote java monitoring with JMX?


1. Run hostname -i and get your host name/IP, for example 192.168.1.5
2. Start your java application using the following parameters: java -jar your.jar - Dcom.sun.management.jmxremote
-Dcom.sun.management.jmxremote.authenticate=false
-
Dcom.sun.management.jmxremote.ssl=false
-
Dcom.sun.management.jmxremote.port=1234
-
Djava.rmi.server.hostname=192.168.1.5
3. Run VisualVM and connect to 192.168.1.5:1234

0 коментарі:

 
TOP