开发者社区> 问答> 正文

分享一个apache在prefork模式下的参数

<IfModule mpm_prefork_module>
ServerLimit                    128
StartServers                  5
MinSpareServers            5
MaxSpareServers           20
MaxClients                      128
RequestsPerChild           1000
</IfModule>
具体请参考 http://www.yuandekai.cn/114.html

展开
收起
kideny 2014-08-19 11:01:39 5622 0
4 条回答
写回答
取消 提交回答
  • 为什么不试试apache的worker模式?
    perfork模式中的apache是编译成apache的模块运行,占资源比较大
    2014-09-01 10:20:11
    赞同 展开评论 打赏
  • 你懂的!
    2014-08-31 23:43:14
    赞同 展开评论 打赏
  • 回 1楼(hxs) 的帖子
    哈哈,相互分享嘛!
    2014-08-19 11:17:33
    赞同 展开评论 打赏
  • hxs
    这 这,
    NND 我查了好几篇文章,综合了服务器之家和网上好几篇相关文章的帖子,被你一下子转了
    http://hxs.fd.fj.cn/?action=show&id=39

    512MB内存需要适当降低MaxClients    
    2014-08-19 11:07:21
    赞同 展开评论 打赏
问答分类:
问答地址:
问答排行榜
最热
最新

相关电子书

更多
Apache Flink技术进阶 立即下载
Apache Spark: Cloud and On-Prem 立即下载
Hybrid Cloud and Apache Spark 立即下载

相关镜像