
1.同事跑了一个php的抓取,这个会导致非常高的sleep值,大概到好几千的水平.进而mysql会down掉.写了个crontab#crontab-e[php]**/1***/sh/detect_php.sh**/1***/sh/detect_php.shdetech_php的内容[php]#!/bin/bashhost_dir=`cd/sh`proc_name="mysql"bug_time=`date-R`pid=0proc_num(){num=`ps-ef|grep$proc_name|grep-vgrep|wc-l`return$num}proc_id(){pid=`ps-ef|grep$proc_name|grep-vgrep|awk'{print$2}'`}proc_numnumber=$?if[$n...