Httpd/KeepAlive
From DocForge
m |
|||
| Line 1: | Line 1: | ||
'''KeepAlive''' is an Apache [[httpd]] core setting which enables persistent connections. This feature of [[HTTP]] allows multiple requests to be sent over the same connection. | '''KeepAlive''' is an Apache [[httpd]] core setting which enables persistent connections. This feature of [[HTTP]] allows multiple requests to be sent over the same connection. | ||
| - | Web | + | [[Web page]]s typically require multiple requests to complete, one for the [[HTML]] and additional for images, [[CSS]], and [[JavaScript]]. By keeping the connection to the [[web server]] open, these requests can be completed faster overall. However, this keeps the httpd instance or thread busy for the duration of the requests until the [[httpd/KeepAliveTimeout|timeout]] expires after the last request. Therefore high traffic sights tend to keep the KeepAlive feature off or the timeout very short. Small sites, and those with more page elements to load, provide better performance to individual users by having KeepAlive on. |
''Syntax'': <tt>KeepAlive On|Off</tt> | ''Syntax'': <tt>KeepAlive On|Off</tt> | ||
Revision as of 18:59, 15 March 2010
KeepAlive is an Apache httpd core setting which enables persistent connections. This feature of HTTP allows multiple requests to be sent over the same connection.
Web pages typically require multiple requests to complete, one for the HTML and additional for images, CSS, and JavaScript. By keeping the connection to the web server open, these requests can be completed faster overall. However, this keeps the httpd instance or thread busy for the duration of the requests until the timeout expires after the last request. Therefore high traffic sights tend to keep the KeepAlive feature off or the timeout very short. Small sites, and those with more page elements to load, provide better performance to individual users by having KeepAlive on.
Syntax: KeepAlive On|Off
Default: KeepAlive On
See Also
- httpd/KeepAliveTimeout - Sets the expiration time of keep-alive connections

