如何在apache2.0中增加最大连接数

gyn 2003-01-06 08:32:04
请问在apache2.0中想要增加最大连接数应该调整哪个参数,httpd.h文件中没有HARD_SERVER_LIMIT
...全文
207 6 打赏 收藏 转发到动态 举报
AI 作业
写回复
用AI写文章
6 条回复
切换为时间正序
请发表友善的回复…
发表回复
gyn 2003-01-06
  • 打赏
  • 举报
回复
OK,very very thanks!
saucer 2003-01-06
  • 打赏
  • 举报
回复
oops, sorry, "mpm_default.h":
"To configure more than 256 clients, you must edit the HARD_SERVER_LIMIT entry in mpm_default.h and recompile.
"

see
http://agro.psu.ac.th/linux/docs/apache2.0/mod/mpm_common.html
gyn 2003-01-06
  • 打赏
  • 举报
回复
呵呵,不好意思,上一篇我写错了,应该是httpd.h。我知道要改httpd.h中的设置,但不知道修改哪个参数,在1.3.x中修改HARD_SERVER_LIMIT这个参数,在apache2.0中找不到。
saucer 2003-01-06
  • 打赏
  • 举报
回复
找 MaxClients,如果你要设置高于256个连接的话,你需要改动源码httpd.h中的设置,重新编译服务器源码
gyn 2003-01-06
  • 打赏
  • 举报
回复
在apache2.0版的httpd.conf中没有HARD_SERVER_LIMIT这个参数,连一个256这个数字也找不到。
saucer 2003-01-06
  • 打赏
  • 举报
回复
"To configure more than 256 clients, one must edit the HARD_SERVER_LIMIT entry in httpd.h and recompile Apache.
"

see
http://www.apacheref.com/ref/http_core/MaxClients.html

MaxClients
Maximum Number of Clients
Syntax: MaxClients A
Example: MaxClients 128
Since: Apache 1.0

This directive limits the number of simultaneous HTTP requests that can be supported; no more than this number of child server processes will be created. To configure more than 256 clients, one must edit the HARD_SERVER_LIMIT entry in httpd.h and recompile Apache. Any connection attempts that exceed the MaxClients limit will normally be queued in kernel space, up to a number based on the ListenBacklog directive. Once a child process is freed at the end of a different request, the queued connection will be serviced.

24,923

社区成员

发帖
与我相关
我的任务
社区描述
Web 开发 Apache
社区管理员
  • Apache
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧