httpd-modules-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ben Noordhuis <>
Subject Re: KeepAlive -- why is it off by default?
Date Tue, 12 Apr 2011 01:29:59 GMT
On Tue, Apr 12, 2011 at 02:18, Joshua Marantz <> wrote:
> What are the reasons someone might wish to turn KeepAlive off?  The only one
> I can think of is in single-process mode (httpd -X) it can be a drag to
> refresh a page with lots of resources; but this seems like a secondary issue
> that could be worked around if needed.

Lower throughput under heavy load.

With KeepAlive on, each client gets allocated a process (or thread) to
serve the requests. That process isn't doing anything useful between
the client's requests so you end up with lots of idle processes, even
when it's peak traffic.

The event MPM is purposely written to deal with this issue: it puts
the idle connection in a pool so the worker can serve other requests.

View raw message