Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


  Search this Thread
Old 01-19-2009, 11:13 AM   #1
Registered: Apr 2006
Location: UK
Distribution: Mandriva, Debain, Redhat, Fedora, Ubuntu, FreeBSD
Posts: 269

Rep: Reputation: 30
apache performance

Can anyone tell me how this config will affect the performance of my web server apache

KeepAliveTimeout 15
KeepAlive Off
MaxKeepAliveRequests 100
Timeout 120
Old 01-19-2009, 04:32 PM   #2
harry edwards
Registered: Nov 2007
Location: Lincolnshire, UK
Distribution: CentOS, Fedora, and Suse
Posts: 365

Rep: Reputation: 48
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.
Old 01-19-2009, 06:34 PM   #3
Registered: Jan 2009
Posts: 100

Rep: Reputation: 17
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.


Last edited by servat78; 02-19-2009 at 12:08 PM.


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
measure apache website performance noir911 Linux - Server 1 09-12-2008 03:01 AM
apache performance tuning sachin1361 Linux - Enterprise 1 03-05-2007 07:19 AM
Optimizing Apache for performance on FreeBSd !! apache Linux - Networking 1 07-28-2004 10:07 AM
Apache Performance Crashed_Again Linux - Software 7 12-18-2003 05:33 PM
Apache Download Server Performance Issues Matt@Ants Linux - General 1 08-04-2003 09:15 PM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 03:23 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration