免费注册 查看新帖 |

Chinaunix

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

[Web] WIN2003下,apache 性能问题 [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2007-01-10 11:49 |只看该作者 |倒序浏览
我的机器是P4,2G内存。
系统是WIN2003SERVER。
已经对2003的最大连接数做了修改。
修改方法:zhidao.baidu.com/question/4842725.html
修改后2003的最大连接数为10240。

APACHE版本是2.0

现在的问题是,访问网站很慢。(带宽没有问题,CPU和内存占用都很低)

用netstat -se 查看
current connectons 在1000左右。

各位帮我看看瓶颈在哪里?







http.conf 部分如下:

#
# Timeout: The number of seconds before receives and sends time out.
#
Timeout 30

#
# KeepAlive: Whether or not to allow persistent connections (more than
# one request per connection). Set to "Off" to deactivate.
#
KeepAlive on

#
# MaxKeepAliveRequests: The maximum number of requests to allow
# during a persistent connection. Set to 0 to allow an unlimited amount.
# We recommend you leave this number high, for maximum performance.
#
MaxKeepAliveRequests 0

#
# KeepAliveTimeout: Number of seconds to wait for the next request from the
# same client on the same connection.
#
KeepAliveTimeout 5

##
## Server-Pool Size Regulation (MPM specific)
##

# WinNT MPM
# ThreadsPerChild: constant number of worker threads in the server process
# MaxRequestsPerChild: maximum  number of requests a server process serves
<IfModule mpm_winnt.c>
ThreadsPerChild 10240
MaxRequestsPerChild 0
#SendBufferSize 300000000
</IfModule>

.................................

论坛徽章:
0
2 [报告]
发表于 2007-01-10 11:55 |只看该作者
楼主,你这个值调太大了点吧。

论坛徽章:
0
3 [报告]
发表于 2007-01-10 11:57 |只看该作者

哪个值?应该多少合适?

哪个值?应该多少合适?

论坛徽章:
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
4 [报告]
发表于 2007-01-10 12:38 |只看该作者
MAX

论坛徽章:
0
5 [报告]
发表于 2007-01-10 13:33 |只看该作者

兄弟能不能说得清楚些啊

兄弟能不能说得清楚些啊

论坛徽章:
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
6 [报告]
发表于 2007-01-10 14:33 |只看该作者
>已经对2003的最大连接数做了修改。
这个值改到最大

<IfModule mpm_winnt.c>
ThreadsPerChild 10240  ->   改到64看看
MaxRequestsPerChild 0
#SendBufferSize 300000000
</IfModule>

WIN2003的IIS很强的

论坛徽章:
0
7 [报告]
发表于 2007-01-10 15:51 |只看该作者
原帖由 xinglp 于 2007-1-10 14:33 发表
>已经对2003的最大连接数做了修改。
这个值改到最大

<IfModule mpm_winnt.c>
ThreadsPerChild 10240  ->   改到64看看
MaxRequestsPerChild 0
#SendBufferSize 300000000
</IfModule>
...


64太小了,

调成1024看看。

论坛徽章:
0
8 [报告]
发表于 2007-01-11 09:36 |只看该作者

调过,问题照旧。

开始可以,运行一天后,就很慢。

论坛徽章:
0
9 [报告]
发表于 2007-01-12 12:03 |只看该作者

有没有可能是硬盘的问题?

有没有可能是硬盘的问题?

论坛徽章:
0
10 [报告]
发表于 2007-01-16 13:58 |只看该作者
问题在MaxRequestsPerChild 0
0表示无限,应该设一个具体的数会好一些,推荐值10000
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

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

清除 Cookies - ChinaUnix - Archiver - WAP - TOP