`
42087743
  • 浏览: 232472 次
  • 性别: Icon_minigender_1
  • 来自: 合肥&上海
社区版块
存档分类
最新评论

apache: KeepAlive KeepAliveTimeout MaxKeepAliveRequests

阅读更多
KeepAlive
引用
允许一次connection中多次request

引用
适合单次connection会发生多次request的service,比如图片服务器

引用
OFF:高并发时,每次reqeust均需要重建connection,消耗CPU资源
ON:高并发时,connection不会立即释放,connections占用内存累加会消耗内存资源

引用
前端有代理服务器时,必须ON


KeepAliveTimeout
引用
2次request间隔的秒数>KeepAliveTimeout,则会断开connection

引用
建议设置>单次connection花费时间


MaxKeepAliveRequsts
引用
单次connection中允许的最大次数request

引用
建议设置较大,设置为0时不限制request次数
分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics