Central Repository: org/apache/tomcat (maven.org)
/usr/local/apache/Tomcat7-8083/lib 增加
catalina-jmx-remote.jar
jstatd脚本
###########一、启动 jstatd 请稍等......##############
echo "Hi,即将启动 jstatd 请稍等......"
echo ""
echo ""
echo -e "\033[31m<<<<< 正在为您启动:jstatd 请稍候!!!>>>>>\033[0m"
echo ""
ps -ef | grep jstatd.all.policy | grep -v grep | awk '{print $2}' | xargs -i kill -9 {}
cd /usr/local/jdk1.7.0_80/bin
jstatd -J-Djava.security.policy=jstatd.all.policy -p 100^3 -J-Djava.rmi.server.hostname=192.168.137.137 -J-Djava.rmi.server.logCalls=true