现在配置的多线程小内存的apache2如下:(修改apache2的配置文件如下,然后重启apache2)
<IfModule mpm_worker_module>
StartServers 1
ServerLimit 4
MinSpareThreads 25
MaxSpareThreads 75
ThreadsPerChild 40
MaxClients 120
MaxRequestsPerChild 1000
ThreadStackSize 500000
</IfModule>
设置stack size,改为512KB,8MB实在是太浪费了:
root@244754:~# ulimit -s 512
ppt.cc/fVjECx ppt.cc/fEnHsx ppt.cc/fRZTnx ppt.cc/fSZ3cx ppt.cc/fLOuCx ppt.cc/fE9Nux ppt.cc/fL5Kyx ppt.cc/fIr1ax ppt.cc/f71Yqx tecmint.com linuxcool.com linux.die.net linux.it.net.cn ostechnix.com unix.com ubuntugeek.com runoob.com man.linuxde.net bit.ly/2EzoUDo bit.ly/2tW6eYT bit.ly/2X6vadl bit.ly/2viLpHU linuxprobe.com linuxtechi.com howtoforge.com linuxstory.org systutorials.com ghacks.net linuxopsys.com v.gd/2P9wTx v.gd/FtfpqE v.gd/eMfHsm v.gd/Ub7mqv v.gd/RReVk0 v.gd/vS3uTI v.gd/4Zxmba
No comments:
Post a Comment