Monitor JAVA through Jconsole remotely

Here we are going to monitor Java process running on linux server from the windows machine with Jconsole.

On linux in catalina.sh file add following line and restart tomcat.

export CATALINA_OPTS="-Dcom.sun.management.jmxremote -Dcom.sun.management.jmxremote.port=8999 -Dcom.sun.management.jmxremote.ssl=false -Dcom.sun.management.jmxremote.authenticate=false -Djava.rmi.server.hostname=192.168.10.23"

Here 192.168.10.23 is the IP of the linux machine.

 

Now in Jconsole in Remote Process: 192.168.10.23:8999 This will allow you to connect to 8999 port on linux.

1 comment: