免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 3133 | 回复: 1
打印 上一主题 下一主题

紧急求助linux apache [warn] mod_fcgid: process错误日志导致网站503错误 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2012-03-08 13:39 |只看该作者 |倒序浏览
紧急求助linux apache [warn] mod_fcgid: process错误日志导致网站503错误 重启apache后又正常,障断性的出现这个问题
求各全大侠,高人指点迷津.不胜感激!!!

apache 错误日志如下:(超级多只揭取了部分)

[Thu Mar 08 12:48:42 2012] [warn] mod_fcgid: process 29832 graceful kill fail, sending SIGKILL
[Thu Mar 08 12:48:50 2012] [warn] mod_fcgid: process 30789 graceful kill fail, sending SIGKILL
[Thu Mar 08 12:48:51 2012] [warn] mod_fcgid: process 29144 graceful kill fail, sending SIGKILL
[Thu Mar 08 12:48:51 2012] [warn] mod_fcgid: process 30335 graceful kill fail, sending SIGKILL
[Thu Mar 08 12:48:51 2012] [warn] mod_fcgid: process 30353 graceful kill fail, sending SIGKILL
[Thu Mar 08 12:48:54 2012] [warn] mod_fcgid: process 30785 graceful kill fail, sending SIGKILL
[Thu Mar 08 12:48:54 2012] [warn] mod_fcgid: process 30797 graceful kill fail, sending SIGKILL
[Thu Mar 08 12:48:54 2012] [warn] mod_fcgid: process 29841 graceful kill fail, sending SIGKILL
[Thu Mar 08 12:48:58 2012] [warn] mod_fcgid: process 30351 graceful kill fail, sending SIGKILL
[Thu Mar 08 12:48:58 2012] [warn] mod_fcgid: process 30795 graceful kill fail, sending SIGKILL
[Thu Mar 08 12:49:02 2012] [warn] mod_fcgid: process 29409 graceful kill fail, sending SIGKILL
[Thu Mar 08 12:49:02 2012] [warn] mod_fcgid: process 29830 graceful kill fail, sending SIGKILL
[Thu Mar 08 12:49:02 2012] [warn] mod_fcgid: process 30802 graceful kill fail, sending SIGKILL
[Thu Mar 08 12:49:02 2012] [warn] mod_fcgid: process 30806 graceful kill fail, sending SIGKILL
[Thu Mar 08 12:49:02 2012] [warn] mod_fcgid: process 23547 graceful kill fail, sending SIGKILL
[Thu Mar 08 12:49:02 2012] [warn] mod_fcgid: process 30799 graceful kill fail, sending SIGKILL
[Thu Mar 08 12:49:02 2012] [warn] mod_fcgid: process 30812 graceful kill fail, sending SIGKILL
[Thu Mar 08 12:49:06 2012] [warn] mod_fcgid: process 30343 graceful kill fail, sending SIGKILL
[Thu Mar 08 12:49:18 2012] [warn] mod_fcgid: process 24803 graceful kill fail, sending SIGKILL
[Thu Mar 08 12:49:18 2012] [warn] mod_fcgid: process 29827 graceful kill fail, sending SIGKILL

写日志导致 磁盘%util 100.10 经常满负荷 重启apache 后%util迅速降低

avg-cpu:  %user   %nice %system %iowait  %steal   %idle
           6.62    0.00    5.49   44.19    0.00   43.70

Device:         rrqm/s   wrqm/s   r/s   w/s   rsec/s   wsec/s avgrq-sz avgqu-sz   await  svctm  %util
sda               0.00     0.00  5.00  0.00    40.00     0.00     8.00     0.04    8.40   8.40   4.20
sda1              0.00     0.00  5.00  0.00    40.00     0.00     8.00     0.04    8.40   8.40   4.20
sda2              0.00     0.00  0.00  0.00     0.00     0.00     0.00     0.00    0.00   0.00   0.00
sdb              85.00   804.00 163.00 159.00  3400.00  7656.00    34.34    32.27   91.33   3.11 100.10
sdb1              0.00     0.00  0.00  0.00     0.00     0.00     0.00     0.00    0.00   0.00   0.00
sdb2             85.00   804.00 163.00 159.00  3400.00  7656.00    34.34    32.27   91.33   3.11 100.10
dm-0              0.00     0.00 245.00 978.00  3368.00  7824.00     9.15   178.93  141.00   0.82 100.10
dm-1              0.00     0.00  4.00  0.00    32.00     0.00     8.00     0.47  106.00  84.25  33.70



TOP:
top - 13:02:43 up 3 days, 16:32,  5 users,  load average: 15.15, 20.53, 18.34
Tasks: 355 total,   1 running, 352 sleeping,   0 stopped,   2 zombie
Cpu(s): 15.9%us,  9.2%sy,  0.0%ni, 26.8%id, 48.1%wa,  0.0%hi,  0.0%si,  0.0%st
Mem:   4146764k total,  1404784k used,  2741980k free,     5652k buffers
Swap:  5144568k total,   216584k used,  4927984k free,  1069480k cached

  PID USER      PR  NI  VIRT  RES  SHR S %CPU %MEM    TIME+  COMMAND                                                                                                              
20072 mysql     15   0 79408  44m 3132 S 198.4  1.1 249:44.28 mysqld                                                                                                               
32089 daemon    15   0 39068  14m 7816 S  0.7  0.4   0:00.23 php-cgi                                                                                                               
30938 daemon    15   0  7536 2460 1660 S  0.3  0.1   0:00.19 httpd                                                                                                                 
31745 daemon    15   0  7512 2456 1644 S  0.3  0.1   0:00.02 httpd                                                                                                                 
32036 root      15   0  2464 1176  796 R  0.3  0.0   0:00.26 top                                                                                                                  
32086 daemon    16   0  7464 2504 1640 S  0.3  0.1   0:00.01 httpd                                                                                                                 
    1 root      15   0  2068  404  384 S  0.0  0.0   0:02.34 init                                                                                                                  
    2 root      RT  -5     0    0    0 S  0.0  0.0   0:00.00 migration/0                                                                                                           
    3 root      34  19     0    0    0 S  0.0  0.0   0:00.02 ksoftirqd/0                                                                                                           
    4 root      RT  -5     0    0    0 S  0.0  0.0   0:00.00 watchdog/0                                                                                                            
    5 root      RT  -5     0    0    0 S  0.0  0.0   0:00.01 migration/1                                                                                                           
    6 root      39  19     0    0    0 S  0.0  0.0   0:00.05 ksoftirqd/1                                                                                                           
    7 root      RT  -5     0    0    0 S  0.0  0.0   0:00.00 watchdog/1                                                                                                            
    8 root      RT  -5     0    0    0 S  0.0  0.0   0:00.01 migration/2                                                                                                           
    9 root      34  19     0    0    0 S  0.0  0.0   0:01.17 ksoftirqd/2                                                                                                           
   10 root      RT  -5     0    0    0 S  0.0  0.0   0:00.00 watchdog/2                                                                                                            
   11 root      RT  -5     0    0    0 S  0.0  0.0   0:00.02 migration/3                                                                                                           
   12 root      34  19     0    0    0 S  0.0  0.0   0:00.02 ksoftirqd/3                                                                                                           
   13 root      RT  -5     0    0    0 S  0.0  0.0   0:00.00 watchdog/3                                                                                                            
   14 root      RT  -5     0    0    0 S  0.0  0.0   0:00.00 migration/4                                                                                                           
   15 root      34  19     0    0    0 S  0.0  0.0   0:00.01 ksoftirqd/4                                                                                                           
   16 root      RT  -5     0    0    0 S  0.0  0.0   0:00.00 watchdog/4                                                                                                            
   17 root      RT  -5     0    0    0 S  0.0  0.0   0:00.01 migration/5

论坛徽章:
0
2 [报告]
发表于 2012-03-08 18:30 |只看该作者
本帖最后由 chlinux 于 2012-03-08 18:32 编辑

查程序吧,iowait过高,单个php进程占内存过高。
看你服务器还没多少并发,如果并发大一点,马上就挂掉了。

iowait过高,读数据库,单个进程取数据量大了也可能产生这个现象
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP