How to configure JVISUALVM Remote monitoring Tomcat program please refer to: http://hiandroidstudio.blog.51cto.com/5902332/1795310
1. Configuring JMX Access Files
# cd $CATALINA _home/conf/ # cp $JAVA _home/ Jre/lib/management/jmxremote.password.template jmxremote.password # chmod 700 jmxremote.password (Be sure to note that this file is not writable by default) # vi $CATALINA _home/conf/jmxremote.password Add a user at the bottom (the first is the user name The second is a password) fox 123456 # chmod 400 jmxremote.password (requires that the file is not writable by any user) # cp $JAVA _home/jre/lib/management/jmxremote.access jmxremote.access # vi jmxremote.access (the file is authorized for JMX users) to the last line will monitorRole readonly controlRole readwrite Comment   change to # monitorRole readonly # controlrole readwrite then add a line at the end fox readwrite # chmod 400 jmxremote.access
2. Configure Tomcat boot parameters
# cd $CATALINA _home/bin # vi catalina.sh Find the following line # ----- Execute The Requested Command ------------ ----------------------------- Add a script above it the last purpose is to follow the previous java_opts and Catalina_home variable settings (in particular, heap memory parameter settings) Online article saying there is a direct set of java_opts but this setting will be thrown at stop when the exception throws Although it does not affect the use of (parameter meaning is : -dcom.sun.management.jmxremote enable JMX remote monitoring -Dcom.sun.management.jmxremote.port=9004 Use port 9004 (can be arbitrarily specified as long as it does not conflict) -Dcom.sun.management.jmxremote.authenticate=true remote connection requires password authentication -Dcom.sun.management.jmxremote.ssl=false do not use SSL ( SSL I tried many times not configured successfully:p temporarily does not open) - dcom.sun.management.jmxremote.access.file= $CATALINA _HOME/CONF/JMxremote.access using the specified JMX account authorization file - dcom.sun.management.jmxremote.password.file= $CATALINA _home/conf/jmxremote.password using the specified JMX account file)
Once the remote Java program is restarted, it's good to configure the JVISUALVM JMX connection again.
650) this.width=650; "src=" http://s2.51cto.com/wyfs02/M01/83/9F/wKioL1d4yqiQRi07AAFZSzh0EaI856.jpg "title=" 6666. JPG "alt=" wkiol1d4yqiqri07aafzszh0eai856.jpg "/>
This article is from the "hiandroid Studio" blog, be sure to keep this source http://hiandroidstudio.blog.51cto.com/5902332/1795340
Using JMX authentication access in the JVISUALVM remote monitoring Tomcat program