LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 701|回复: 2

怎么加大apache的进程数呢?

[复制链接]
发表于 2003-10-29 11:57:56 | 显示全部楼层 |阅读模式
有2、30个网站,打开网站的速度好慢!我想把进程开到20个左右!
我的apache是2.0版本,请问修改哪一个呢!!!

=====================

MaxKeepAliveRequests 100

KeepAliveTimeout 15

< IfModule prefork.c >
StartServers 5
MinSpareServers 5
MaxSpareServers 10
MaxClients 150
MaxRequestsPerChild 0
< /IfModule >


< IfModule worker.c >
StartServers 2
MaxClients 150
MinSpareThreads 25
MaxSpareThreads 75
ThreadsPerChild 25
MaxRequestsPerChild 0
< /IfModule >

< IfModule perchild.c >
NumServers 5
StartThreads 5
MinSpareThreads 5
MaxSpareThreads 10
MaxThreadsPerChild 20
MaxRequestsPerChild 0
< /IfModule >

< IfModule mpm_winnt.c >
ThreadsPerChild 250
MaxRequestsPerChild 0
< /IfModule >


< IfModule beos.c >
StartThreads 10
MaxClients 50
MaxRequestsPerThread 10000
< /IfModule >

< IfModule mpm_netware.c >
ThreadStackSize 65536
StartThreads 250
MinSpareThreads 25
MaxSpareThreads 250
MaxThreads 1000
MaxRequestsPerChild 0
< /IfModule >

< IfModule mpmt_os2.c >
StartServers 2
MinSpareThreads 5
MaxSpareThreads 10
MaxRequestsPerChild 0
< /IfModule >
=====================

谢谢指点!!!
发表于 2003-10-29 13:58:22 | 显示全部楼层
< IfModule prefork.c >
StartServers 5
MinSpareServers 5
MaxSpareServers 10
MaxClients 150

MaxRequestsPerChild 0
< /IfModule >
该其中黑体部分
 楼主| 发表于 2003-10-29 15:01:28 | 显示全部楼层
ok

ths


老大,可以介绍一下每个模块的功能吗?
您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表