留为笔记!!
1:场景
网站访问比较慢,w显示时机器的负载很高,大概400--500
ps aux | grep httpd|wc -l
502
我先killall -9 httpd ,然后重启服务器正常了,但过大概几个小时时间不定,web服务器又出现问题了,负载很高,用户访问很慢,尽管我有个脚本每间隔3秒就检查下web服务器的状态,如果出现问题,就restart httpd,但这样不好,还是要找到问题的原因!我在httpd.conf中设置的ServerLimit 500 ,客户说我的配置有问题, 我感觉不是,因为apache的日志文件很少,这么点访问 我ServerLimit 500 肯定够了!后来我查了下感觉是某个网站有问题!是程序的问题,让用户在程序中注释掉该网站的相关部分,监控了几天,问题还是出现:
此时日志文件里面比较多的类似如下的提示:
-
sending a SIGTERM
-
[Mon Jul 01 23:09:56 2013] [warn] child process 16926 still did not exit, sending a SIGTERM
-
[Mon Jul 01 23:09:56 2013] [warn] child process 16927 still did not exit, sending a SIGTERM
-
[Mon Jul 01 23:09:56 2013] [warn] child process 16928 still did not exit, sending a SIGTERM
-
[Mon Jul 01 23:09:56 2013] [warn] child process 16929 still did not exit, sending a SIGTERM
-
[Mon Jul 01 23:09:56 2013] [warn] child process 16930 still did not exit, sending a SIGTERM
-
[Mon Jul 01 23:09:56 2013] [warn] child process 16931 still did not exit, sending a SIGTERM
-
[Mon Jul 01 23:09:56 2013] [warn] child process 16932 still did not exit, sending a SIGTERM
-
[Mon Jul 01 23:09:56 2013] [warn] child process 16933 still did not exit, sending a SIGTERM
-
[Mon Jul 01 23:09:56 2013] [warn] child process 16934 still did not exit, sending a SIGTERM
-
[Mon Jul 01 23:09:56 2013] [warn] child process 16935 still did not exit, sending a SIGTERM
-
[Mon Jul 01 23:09:56 2013] [warn] child process 16936 still did not exit, sending a SIGTERM
-
[Mon Jul 01 23:09:56 2013] [warn] child process 16937 still did not exit, sending a SIGTERM
-
[Mon Jul 01 23:09:56 2013] [warn] child process 16938 still did not exit, sending a SIGTERM
-
[Mon Jul 01 23:09:56 2013] [warn] child process 16939 still did not exit, sending a SIGTERM
-
[Mon Jul 01 23:09:56 2013] [warn] child process 16940 still did not exit, sending a SIGTERM
-
[Mon Jul 01 23:09:56 2013] [warn] child process 16941 still did not exit, sending a SIGTERM
-
[Mon Jul 01 23:09:56 2013] [warn] child process 16942 still did not exit, sending a SIGTERM
-
[Mon Jul 01 23:09:56 2013] [warn] child process 16943 still did not exit, sending a SIGTERM
-
[Mon Jul 01 23:09:56 2013] [warn] child process 16944 still did not exit, sending a SIGTERM
-
[Mon Jul 01 23:09:56 2013] [warn] child process 16945 still did not exit, sending a SIGTERM
-
[Mon Jul 01 23:09:56 2013] [warn] child process 16946 still did not exit, sending a SIGTERM
-
[Mon Jul 01 23:09:56 2013] [warn] child process 16947 still did not exit, sending a SIGTERM
-
[Mon Jul 01 23:09:56 2013] [warn] child process 16948 still did not exit, sending a SIGTERM
-
[Mon Jul 01 23:09:56 2013] [warn] child process 16949 still did not exit, sending a SIGTERM
-
[Mon Jul 01 23:09:56 2013] [warn] child process 16950 still did not exit, sending a SIGTERM
-
[Mon Jul 01 23:09:56 2013] [warn] child process 16951 still did not exit, sending a SIGTERM
-
[Mon Jul 01 23:09:56 2013] [warn] child process 16952 still did not exit, sending a SIGTERM
-
[Mon Jul 01 23:09:56 2013] [warn] child process 16953 still did not exit, sending a SIGTERM
-
[Mon Jul 01 23:09:56 2013] [warn] child process 16954 still did not exit, sending a SIGTERM
-
[Mon Jul 01 23:09:56 2013] [warn] child process 16955 still did not exit, sending a SIGTERM
-
[Mon Jul 01 23:09:56 2013] [warn] child process 16956 still did not exit, sending a SIGTERM
-
[Mon Jul 01 23:09:56 2013] [warn] child process 16957 still did not exit, sending a SIGTERM
-
[Mon Jul 01 23:09:56 2013] [warn] child process 16958 still did not exit, sending a SIGTERM
-
[Mon Jul 01 23:09:56 2013] [warn] child process 16959 still did not exit, sending a SIGTERM
-
[Mon Jul 01 23:09:56 2013] [warn] child process 16960 still did not exit, sending a SIGTERM
-
[Mon Jul 01 23:09:56 2013] [warn] child process 16961 still did not exit, sending a SIGTERM
-
[Mon Jul 01 23:09:56 2013] [warn] child process 16962 still did not exit, sending a SIGTERM
-
几乎每次出现问题时都有类似上面的提示:
偶尔也会发现如下的提示:
当时出问题时:前端的squid有如下显示:squid已经不能将请求转到后台的web服务器,####出现问题的时候web服务器机器非常高!
##192.168.0.14 是后台的web服务器! 显然提示我后台的web服务器出现了问题!
阅读(4681) | 评论(0) | 转发(0) |