免费注册 查看新帖 |

Chinaunix

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

[Web] httpd进程为什么这么多? [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2009-10-15 09:50 |只看该作者 |倒序浏览
每天的访问量才20万PV,但是httpd的进程一直就会达到服务器设置的最高值,导致用户访问网站速度很慢,不知道该如何解决?
如下,httpd进程多而且一直都不结束。apache配置文件中限制最多1000个,而下面的httpd进程数量就一直保持在1002个
daemon   18848  0.0  0.5 20524 11572 ?       S    15:25   0:00 /usr/local/apache/bin/httpd -k start
daemon   18857  0.0  0.5 20088 11148 ?       S    15:25   0:00 /usr/local/apache/bin/httpd -k start
daemon   18859  0.0  0.5 20496 11540 ?       S    15:25   0:00 /usr/local/apache/bin/httpd -k start
daemon   18867  0.0  0.5 20504 11292 ?       S    15:25   0:00 /usr/local/apache/bin/httpd -k start
daemon   18870  0.0  0.5 20464 11520 ?       S    15:25   0:00 /usr/local/apache/bin/httpd -k start
daemon   18874  0.0  0.5 20528 11580 ?       S    15:25   0:00 /usr/local/apache/bin/httpd -k start
daemon   19040  0.0  0.5 20088 11140 ?       S    15:25   0:00 /usr/local/apache/bin/httpd -k start
daemon   19042  0.0  0.5 20464 11512 ?       S    15:25   0:00 /usr/local/apache/bin/httpd -k start
…………………………………………………………………………………………………………………………………………
daemon   18874  0.0  0.5 20528 11580 ?       S    15:25   0:00 /usr/local/apache/bin/httpd -k start
daemon   19040  0.0  0.5 20088 11140 ?       S    15:25   0:00 /usr/local/apache/bin/httpd -k start
daemon   19042  0.0  0.5 20464 11512 ?       S    15:25   0:00 /usr/local/apache/bin/httpd -k start

论坛徽章:
0
2 [报告]
发表于 2009-10-15 10:34 |只看该作者
进程多很正常,访问量大 自然会产生很多子进程的。可以尝试换nginx试试。
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

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

清除 Cookies - ChinaUnix - Archiver - WAP - TOP