KeepAlive On
KeepAliveTimeout 2 # 15=Default
MaxKeepAliveRequests 0 # 0=Unlimit
http://httpd.apache.org/docs/2.0/mod/core.html
KeepAlive Directive
Description: | Enables HTTP persistent connections |
---|---|
Syntax: | KeepAlive On|Off |
Default: | KeepAlive On |
Context: | server config, virtual host |
Status: | Core |
Module: | core |
The Keep-Alive extension to HTTP/1.0 and the persistent connection feature of
HTTP/1.1 provide long-lived HTTP sessions which allow multiple requests to be
sent over the same TCP connection. In some cases this has been shown to result
in an almost 50% speedup in latency times for HTML documents with many images.
To enable Keep-Alive connections, set KeepAlive On
.
For HTTP/1.0 clients, Keep-Alive connections will only be used if they are specifically requested by a client. In addition, a Keep-Alive connection with an HTTP/1.0 client can only be used when the length of the content is known in advance. This implies that dynamic content such as CGI output, SSI pages, and server-generated directory listings will generally not use Keep-Alive connections to HTTP/1.0 clients. For HTTP/1.1 clients, persistent connections are the default unless otherwise specified. If the client requests it, chunked encoding will be used in order to send content of unknown length over persistent connections.
See also
KeepAliveTimeout Directive
Description: | Amount of time the server will wait for subsequent requests on a persistent connection |
---|---|
Syntax: | KeepAliveTimeout seconds |
Default: | KeepAliveTimeout 15 |
Context: | server config, virtual host |
Status: | Core |
Module: | core |
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.
Setting KeepAliveTimeout
to a high value may
cause performance problems in heavily loaded servers. The higher the timeout,
the more server processes will be kept occupied waiting on connections with idle
clients.
In a name-based virtual host context, the value
MaxKeepAliveRequests Directive
Description: | Number of requests allowed on a persistent connection |
---|---|
Syntax: | MaxKeepAliveRequests number |
Default: | MaxKeepAliveRequests 100 |
Context: | server config, virtual host |
Status: | Core |
Module: | core |
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. We recommend that this setting be kept to a
high value for maximum server performance.
For example:
MaxKeepAliveRequests 500
'Server관련 > Sever(OS)' 카테고리의 다른 글
Linux 서비스 데몬 관리 (0) | 2009.03.13 |
---|---|
XP 폴더에 "보안탭" 나오게 하는법 (0) | 2009.03.10 |
[Linux] 복구를 위해 USB메모리 연결하기 (0) | 2009.03.10 |
CentOS 5.2 DVD용 다운로드 (0) | 2009.03.10 |
e2fsck를 이용한 리눅스 파일 시스템 복구하기 (0) | 2008.09.16 |
[linux] LVM in rescue mode (복원) (0) | 2008.09.16 |
[Unix] 좀비 프로세스 대치법 (0) | 2008.09.09 |
[unix]kill signal + tomcat 프로세스 스레드값 만들기 (kill -3 <pid>) (0) | 2008.09.03 |
(로그인하지 않으셔도 가능)