免费注册 查看新帖 |

Chinaunix

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

[Web] apache 无法设置 MaxClients 问题在线等! [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2007-01-09 18:08 |只看该作者 |倒序浏览
我在 apache/conf/extra/httpd-mpm.conf
# prefork MPM
# StartServers: number of server processes to start
# MinSpareServers: minimum number of server processes which are kept spare
# MaxSpareServers: maximum number of server processes which are kept spare
# MaxClients: maximum number of server processes allowed to start
# MaxRequestsPerChild: maximum number of requests a server process serves
<IfModule mpm_prefork_module>
    StartServers          10
    MinSpareServers       10
    MaxSpareServers       15
    ServerLimit           20000
    MaxClients            500
    MaxRequestsPerChild   10000
</IfModule>

可是到了257之后就不在增加了!
哪为高手能帮帮忙呀!!加我QQ也可以133860911 MSN chenery_12345@hotmail.com

论坛徽章:
0
2 [报告]
发表于 2007-01-09 18:41 |只看该作者
你确定你用的是 prefork 工作方式吗?
执行一下 httpd -l 看看

看你的配置文件是 httpd 2.2 吧?  2.2的话应该就不需要改httpd.h就可以突破256

论坛徽章:
0
3 [报告]
发表于 2007-01-10 09:04 |只看该作者
[root@localhost ~]# /server/soft/apache/bin/apachectl -l
Compiled in modules:
  core.c
  mod_authn_file.c
  mod_authn_default.c
  mod_authz_host.c
  mod_authz_groupfile.c
  mod_authz_user.c
  mod_authz_default.c
  mod_auth_basic.c
  mod_include.c
  mod_filter.c
  mod_log_config.c
  mod_env.c
  mod_setenvif.c
  prefork.c
  http_core.c
  mod_mime.c
  mod_status.c
  mod_autoindex.c
  mod_asis.c
  mod_cgi.c
  mod_negotiation.c
  mod_dir.c
  mod_actions.c
  mod_userdir.c
  mod_alias.c
  mod_rewrite.c
  mod_so.c

论坛徽章:
0
4 [报告]
发表于 2007-01-10 09:28 |只看该作者

我有同样的问题

我是在WIN XP系统下
装的是 apache_2.2.3-win32-x86-no_ssl.msi
在C:\Program Files\Apache Software Foundation\Apache2.2\conf\extra 文件夹下的httpd-mpm.conf


#
# Only one of the below sections will be relevant on your
# installed httpd.  Use "apachectl -l" to find out the
# active mpm.
#

installed httpd.  Use "apachectl -l" to find out the
是不是 安装httpd  难道装上apache 后还需要安装httpd  ?
Use "apachectl -l"  这个命令 具体怎么用?
请用过大大 教教我
谢谢!

论坛徽章:
0
5 [报告]
发表于 2007-01-10 09:30 |只看该作者
各位老大帮帮我吧,我现在都不知道我的服务器问题出在哪里了,今天早上有看了看服务器,现在变的又很快了我的服务器一到11:00左右一直到晚上速度特别的慢,甚至连网页都打不开了,我从新启动一下APACHE后能坚持个3~4分钟就又不行了,我看了看[root@localhost ~]# ps -e|grep httpd|wc -l 发现下午始终是257 早上还能好一些230左右!各位老大帮帮忙呀!

论坛徽章:
0
6 [报告]
发表于 2007-01-10 10:15 |只看该作者
http://www.phpchina.com/bbs/thread-15835-1-1.html

Nanu 大大 :
Windows 平台的 Apache 是使用 WinNT worker MPM 运行的,所以调整 Prefork 的 Maxclients 当然没用了。

应该调整 worker 配置段的参数。

论坛徽章:
0
7 [报告]
发表于 2007-01-10 10:18 |只看该作者
我是LINUX系统呀 我的 apachectl -l 结果已经贴出来了请各位老大帮忙!

论坛徽章:
0
8 [报告]
发表于 2007-01-11 09:47 |只看该作者
问题尚未解决!我顶! 解决中......
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

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

清除 Cookies - ChinaUnix - Archiver - WAP - TOP