1. Download and install JDK and Tomcat on Linux system
2. Configure Tomcat parameters
[Email protected] ~]# vim/usr/local/tomcat-7.0.64front/bin/catalina.sh
java_opts= "$JAVA _opts
-dcom.sun.management.jmxremote--Remote login
-dcom.sun.management.jmxremote.port=9004-Open port
-dcom.sun.management.jmxremote.authenticate=true--User password Authentication
-dcom.sun.management.jmxremote.ssl=false--No SSL enabled
-dcom.sun.management.jmxremote.access.file=/usr/local/jdk1.7.0_80/jre/lib/management/
Jmxremote.access--access rights
-dcom.sun.management.jmxremote.password.file=/usr/local/jdk1.7.0_80/jre/lib/management/
Jmxremote.password--Access password
"
[Email protected] ~]# cd/usr/local/jdk1.7.0_80/jre/lib/management/
[Email protected] management]# cp-a jmxremote.password.template Jmxremote.password
[Email protected] management]# vim Jmxremote.password
Tingyun System-User name and password
[Email protected] management]# vim jmxremote.access
#monitorRole ReadOnly--Notes
#controlRole readwrite \
# Create javax.management.monitor.*,javax.management.timer.* \
# Unregister
Tingyun ReadWrite--User authorization (ReadOnly read-only ReadWrite read-write)
[Email protected] management]# chmod jmxremote.password jmxremote.access
[Email protected] management]#/usr/local/tomcat-7.0.64front/bin/shutdown.sh
[Email protected] management]#/usr/local/tomcat-7.0.64front/bin/startup.sh
[Email protected] management]# Netstat-antulp | grep 9004
TCP 0 0::: 9004:::* LISTEN 3093/java
[Email protected] management]#
3.jconsole Connection Server
650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M01/74/FB/wKioL1YwSQfD_voxAAEHmYz-ZIU133.jpg "style=" float: none; "title=" 1.png "alt=" Wkiol1ywsqfd_voxaaehmyz-ziu133.jpg "/>
650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M02/74/FD/wKiom1YwSNPxfeb4AAHkiwvyGyQ059.jpg "style=" float: none; "title=" 2.png "alt=" Wkiom1ywsnpxfeb4aahkiwvygyq059.jpg "/>
This article is from the "Days Together" blog, please be sure to keep this source http://tongcheng.blog.51cto.com/6214144/1707194
Jconsole monitoring the JVM usage of Linux systems