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次数
页:
[1]