apache并发连接数的问题。
时间:2010-03-11
来源:互联网
<IfModule mpm_prefork_module>
StartServers 20000
MinSpareServers 20000
MaxSpareServers 60000
MaxClients 100000
MaxRequestsPerChild 0
</IfModule>
20000个httpd的话,直接吃掉11G内存。
如果我创造的并发连接为5W,那么将会发现有那么几段时间内流量为0、网站无法响应。
(貌似apache不工作了,此时CPU占用率不高,内存大概吃掉15G,还尚有空余1G内存)
apache的并发跟什么有直接关系?
或者,是什么制约了apache的并发?
StartServers 20000
MinSpareServers 20000
MaxSpareServers 60000
MaxClients 100000
MaxRequestsPerChild 0
</IfModule>
20000个httpd的话,直接吃掉11G内存。
如果我创造的并发连接为5W,那么将会发现有那么几段时间内流量为0、网站无法响应。
(貌似apache不工作了,此时CPU占用率不高,内存大概吃掉15G,还尚有空余1G内存)
apache的并发跟什么有直接关系?
或者,是什么制约了apache的并发?
作者: marsaber 发布时间: 2010-03-11
弟一次看到这么设置的。
如果并发很高,可以使用works方式运行。这个占用资源小。但响应效率不如prefork。具体的可以看看我以前的发贴子。
如果并发很高,可以使用works方式运行。这个占用资源小。但响应效率不如prefork。具体的可以看看我以前的发贴子。
作者: scyzxp 发布时间: 2010-03-11
your parameter value sets so high that your apache server can not compete properly it.finially the load of apache service is too heavy to work.
according to my experience,it is very difficult for single apache service to complete concurrently more than 5 thousands requests.
even if you have enough cpu and memory,you can not complete concurrently fifty thousands requests.
recommand that LVS share 5w request.otherwise no good ideas to solve it.
according to my experience,it is very difficult for single apache service to complete concurrently more than 5 thousands requests.
even if you have enough cpu and memory,you can not complete concurrently fifty thousands requests.
recommand that LVS share 5w request.otherwise no good ideas to solve it.
作者: todayhero 发布时间: 2010-03-12
or you use nginx instead of apache.nginx performance is much better than apache.nginx maybe solve this problem.
作者: todayhero 发布时间: 2010-03-12
StartServers 20000
MinSpareServers 20000
MaxSpareServers 60000
MaxClients 100000
你主机什么配置?
你是参照哪些文章设置的这些参数?
MinSpareServers 20000
MaxSpareServers 60000
MaxClients 100000
你主机什么配置?
你是参照哪些文章设置的这些参数?
作者: ruochen 发布时间: 2010-03-13
相关阅读 更多
热门阅读
-
office 2019专业增强版最新2021版激活秘钥/序列号/激活码推荐 附激活工具
阅读:74
-
如何安装mysql8.0
阅读:31
-
Word快速设置标题样式步骤详解
阅读:28
-
20+道必知必会的Vue面试题(附答案解析)
阅读:37
-
HTML如何制作表单
阅读:22
-
百词斩可以改天数吗?当然可以,4个步骤轻松修改天数!
阅读:31
-
ET文件格式和XLS格式文件之间如何转化?
阅读:24
-
react和vue的区别及优缺点是什么
阅读:121
-
支付宝人脸识别如何关闭?
阅读:21
-
腾讯微云怎么修改照片或视频备份路径?
阅读:28