0% found this document useful (0 votes)
15 views1 page

Configuring Apache KeepAlive Directives

The document provides instructions on configuring Apache's KeepAlive directives, which manage persistent connections. Key directives include 'KeepAlive On' to enable persistent connections, 'MaxKeepAliveRequests' to limit the number of connections, and 'KeepAliveTimeout' to set the wait time for requests. Adjusting these settings can optimize server performance based on user traffic and connection behavior.

Uploaded by

linuxlearn0
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
15 views1 page

Configuring Apache KeepAlive Directives

The document provides instructions on configuring Apache's KeepAlive directives, which manage persistent connections. Key directives include 'KeepAlive On' to enable persistent connections, 'MaxKeepAliveRequests' to limit the number of connections, and 'KeepAliveTimeout' to set the wait time for requests. Adjusting these settings can optimize server performance based on user traffic and connection behavior.

Uploaded by

linuxlearn0
Copyright
© All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd

Changing the KeepAlive

directives
Scroll down on the page until you see the below directives:

KeepAlive On: When set to ‘On’ Apache will allow persistent


connections. This means more than one connection will be
allowed per request. You should set this value to ‘On’ if it was
set to ‘Off’ to activate KeepAlive on your server.

MaxKeepAliveRequests: This represents the maximum


number of connections that should be allowed on your web
server when KeepAlive is enabled.

You can set the value to ‘0’ for unlimited connections but this
is not recommended. The default value is ‘100’ and this can
work for most websites but you can keep this number high
depending on the number of users visiting your website.

KeepAliveTimeout: This directive represents the number of


seconds to wait for another request from the same client
using the same connection. The default value is ‘5’ seconds.

Setting a high value on this directive may lead to a lot of idle


connections and can degrade the performance of your server.
So only adjust this value when users experience a lot of
aborted connections when browsers try to establish
connections to closed sessions.

You might also like