apache performance
Hi
Can anyone tell me how this config will affect the performance of my web server apache KeepAliveTimeout 15 KeepAlive Off MaxKeepAliveRequests 100 Timeout 120 |
KeepAliveTimeout: The number of seconds Apache will wait for a subsequent request before closing the connection. Once a request has been received, the timeout value specified by the Timeout directive applies.
KeepAlive: Enable Keep-Alive connections. MaxKeepAliveRequests: The MaxKeepAliveRequests directive limits the number of requests allowed per connection when KeepAlive is on. If it is set to "0", unlimited requests will be allowed. Timeout: The TimeOut directive currently defines the amount of time Apache will wait for three things: 1. The total amount of time it takes to receive a GET request. 2. The amount of time between receipt of TCP packets on a POST or PUT request. 3. The amount of time between ACKs on transmissions of TCP packets in responses. |
Please correct me if I'm wrong, but so far I was under the impression that setting 'KeepAlive' to Off will render 'KeepAliveTimeout ' and 'MaxKeepAliveRequests' values irrelevant. Based on this assumption only the 'Timeout' setting would have any effect on performance.
Timeout is sometimes a problem with web scripts that need a long time to finish (uploading large amounts of bibliographic data with immediate dataprocessing, for example) - Apache will kill them off unfinished, even if repeated requests are made by the script to extend the timeout value (requests not granted, I guess). Large timeout values are only a problem with bad scripts (endless loops, etc), otherwise a correctly terminating script with a short runtime will not cause performance problems. Debian |
All times are GMT -5. The time now is 07:53 PM. |