免费注册 查看新帖 |

Chinaunix

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

[Web] apache2 几乎每天死两次 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2007-06-04 12:44 |只看该作者 |倒序浏览
配置如下

Timeout 10
KeepAlive On
MaxKeepAliveRequests 100
KeepAliveTimeout 15

<IfModule prefork.c>
StartServers        10
MinSpareServers     10
MaxSpareServers     25
ServerLimit 2000
MaxClients  1000
MaxRequestsPerChild  0
</IfModule>



然后过段时间  一般是几个小时到半天  就会无法访问
查看错误日志

先是一大堆的这个
[Mon Jun 04 09:18:43 2007] [warn] child process 634 still did not exit, sending a SIGTERM
[Mon Jun 04 09:18:43 2007] [warn] child process 644 still did not exit, sending a SIGTERM
[Mon Jun 04 09:18:43 2007] [warn] child process 645 still did not exit, sending a SIGTERM
[Mon Jun 04 09:18:43 2007] [warn] child process 646 still did not exit, sending a SIGTERM
[Mon Jun 04 09:18:43 2007] [warn] child process 28030 still did not exit, sending a SIGTERM
[Mon Jun 04 09:18:43 2007] [warn] child process 654 still did not exit, sending a SIGTERM
[Mon Jun 04 09:18:43 2007] [warn] child process 681 still did not exit, sending a SIGTERM
[Mon Jun 04 09:18:43 2007] [warn] child process 687 still did not exit, sending a SIGTERM
[Mon Jun 04 09:18:43 2007] [warn] child process 688 still did not exit, sending a SIGTERM
[Mon Jun 04 09:18:43 2007] [warn] child process 690 still did not exit, sending a SIGTERM
[Mon Jun 04 09:18:43 2007] [warn] child process 691 still did not exit, sending a SIGTERM
[Mon Jun 04 09:18:43 2007] [warn] child process 692 still did not exit, sending a SIGTERM
等等等

然后是一大堆的这个。。。

[Mon Jun 04 09:18:47 2007] [error] child process 32316 still did not exit, sending a SIGKILL
[Mon Jun 04 09:18:47 2007] [error] child process 524 still did not exit, sending a SIGKILL
[Mon Jun 04 09:18:47 2007] [error] child process 528 still did not exit, sending a SIGKILL
[Mon Jun 04 09:18:47 2007] [error] child process 532 still did not exit, sending a SIGKILL
[Mon Jun 04 09:18:47 2007] [error] child process 609 still did not exit, sending a SIGKILL
[Mon Jun 04 09:18:47 2007] [error] child process 610 still did not exit, sending a SIGKILL
[Mon Jun 04 09:18:47 2007] [error] child process 633 still did not exit, sending a SIGKILL
[Mon Jun 04 09:18:47 2007] [error] child process 645 still did not exit, sending a SIGKILL
[Mon Jun 04 09:18:47 2007] [error] child process 646 still did not exit, sending a SIGKILL
[Mon Jun 04 09:18:47 2007] [error] child process 28030 still did not exit, sending a SIGKILL
[Mon Jun 04 09:18:47 2007] [error] child process 654 still did not exit, sending a SIGKILL
[Mon Jun 04 09:18:47 2007] [error] child process 681 still did not exit, sending a SIGKILL
[Mon Jun 04 09:18:47 2007] [error] child process 687 still did not exit, sending a SIGKILL
[Mon Jun 04 09:18:47 2007] [error] child process 690 still did not exit, sending a SIGKILL
[Mon Jun 04 09:18:47 2007] [error] child process 691 still did not exit, sending a SIGKILL
等等等等

最后就这样了
[Mon Jun 04 09:18:47 2007] [error] child process 941 still did not exit, sending a SIGKILL
[Mon Jun 04 09:18:47 2007] [error] child process 942 still did not exit, sending a SIGKILL
[Mon Jun 04 09:18:47 2007] [error] child process 944 still did not exit, sending a SIGKILL
[Mon Jun 04 09:18:47 2007] [error] child process 1133 still did not exit, sending a SIGKILL
[Mon Jun 04 09:18:48 2007] [error] could not make child process 500 exit, attempting to continue anyway
[Mon Jun 04 09:18:48 2007] [notice] caught SIGTERM, shutting down



百思不得其解    搜索了好多论坛与资料都得不到答案    有人说是连接数问题   但是才1000的连接数应该是不会有问题的

不知道谁曾经遇到过这个情况  或者解决过   麻烦说个意见   先谢谢拉

论坛徽章:
5
2015年辞旧岁徽章
日期:2015-03-03 16:54:152015年迎新春徽章
日期:2015-03-04 09:53:172015亚冠之水原三星
日期:2015-06-02 16:34:202015年亚冠纪念徽章
日期:2015-10-19 18:13:37程序设计版块每日发帖之星
日期:2015-11-08 06:20:00
2 [报告]
发表于 2007-06-04 12:53 |只看该作者
换Worker模式看看

论坛徽章:
0
3 [报告]
发表于 2007-06-04 13:02 |只看该作者
关键是这台服务器是由 虚拟主机系统 控制的  apache不能自己编译  只能从解决问题方面着手了

论坛徽章:
0
4 [报告]
发表于 2007-06-04 16:19 |只看该作者
DirectAdmin

以前几台用的apache1.3   没有问题  现在这台升到了apache 2.0.59     但是就是经常出上面的问题  唉

论坛徽章:
0
5 [报告]
发表于 2007-06-06 11:08 |只看该作者
是不是负载过重?

帮顶,等 高手。

论坛徽章:
0
6 [报告]
发表于 2007-06-12 15:13 |只看该作者
KeepAlive On 改为
KeepAlive Off
试试看呢

论坛徽章:
5
2015年辞旧岁徽章
日期:2015-03-03 16:54:152015年迎新春徽章
日期:2015-03-04 09:53:172015亚冠之水原三星
日期:2015-06-02 16:34:202015年亚冠纪念徽章
日期:2015-10-19 18:13:37程序设计版块每日发帖之星
日期:2015-11-08 06:20:00
7 [报告]
发表于 2007-06-12 17:56 |只看该作者
一天死两次,一次死半天?
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

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

清除 Cookies - ChinaUnix - Archiver - WAP - TOP