Apache Directive - KeepAlive and KeepAliveTimeout
Posted on 2003-03-28
I run a very busy web server, my load averages are high and I'm looking at ways to reduce the load. Reducing the load is my primary aim, I don't care about anything else.
I have several questions about Apache's KeepAlive and KeepAliveTimeout directive. I understand what they do but I'm not clear on the following:
1. To reduce load on a very busy web server, would it be prudent to disable KeepAlive? Please explain why.
2. My MaxClients is set to 200, if KeepAlive was enabled then what KeepAlive setting would be reasonable (e.g. 1-2 sec or much longer?) to reduce load on a very busy web server?
2. My MaxClients is set to 200, if KeepAlive was enabled then what KeepAliveTimeout setting would be reasonable (e.g. 20-30 or much higher?) to reduce load on a very busy web server?
Apache's manual is vague and other websites have no information for tuning Apache's KeepAlive directive for very busy web servers. Please help.