获取脚本测试脚本
cat access.log | awk '{print $7}' | grep -v "(\|)" | awk '{ if(NR%1000==0) {print "sleep 1; date; " "wget -q \"http://localhost"$1"\"" " --output-document=/dev/null &" } else print "wget -q \"http://localhost"$1"\"" " --output-document=/dev/null &" }' |sed -e 's/!/\\!/g'>test.sh
运行获取的 test.sh 脚本
运行后监控系统CPU、内存、网络、IO等状况
监控Mysql:抓取SQL,也可以配置mysql的my.cnf设置慢查询获取到日志,优化SQL
监控JAVA线程 占用CPU>%2、内存>%2的线程代码 并优化代码


被折叠的 条评论
为什么被折叠?



