How to monitor a JCC
If you want to monitor a JCC, please follow the following instructions:
Prerequisite:
-
jmxremote_optional-repackaged-3.1.1.jar (If you compile jcc locally, you will have this library at ~/.m2/repository/org/glassfish/external/jmxremote_optional-repackaged/3.1.1/jmxremote_optional-repackaged-3.1.1.jar)
-
Monitoring tool like jvisualvm or jconsole
Run the following command in the shell:
jvisualvm -cp:a <path_to_jmxremote_optional-repackaged-3.1.1.jar> "$@"
Eg : jvisualvm -cp:a ~/.m2/repository/org/glassfish/external/jmxremote_optional-repackaged/3.1.1/jmxremote_optional-repackaged-3.1.1.jar โ$@โ
3.Once the UI comes up, Click on add remote connection and enter the following service uri:
service:jmx:jmxmp://<fq_host_name>:8082
eg : for alpha-jcc2.clouddev.snaplogic.com
service:jmx:jmxmp://alpha-jcc2.clouddev.snaplogic.com:8082