Return-Path: Delivered-To: apmail-httpd-users-archive@www.apache.org Received: (qmail 647 invoked from network); 20 Nov 2006 20:57:37 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 20 Nov 2006 20:57:37 -0000 Received: (qmail 12026 invoked by uid 500); 20 Nov 2006 20:57:36 -0000 Delivered-To: apmail-httpd-users-archive@httpd.apache.org Received: (qmail 12012 invoked by uid 500); 20 Nov 2006 20:57:36 -0000 Mailing-List: contact users-help@httpd.apache.org; run by ezmlm Precedence: bulk Reply-To: users@httpd.apache.org list-help: list-unsubscribe: List-Post: List-Id: Delivered-To: mailing list users@httpd.apache.org Received: (qmail 12001 invoked by uid 99); 20 Nov 2006 20:57:36 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 20 Nov 2006 12:57:36 -0800 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: pass (herse.apache.org: local policy) Received: from [64.78.20.146] (HELO exsmtp012-2.exch012.intermedia.net) (64.78.20.146) by apache.org (qpsmtpd/0.29) with SMTP; Mon, 20 Nov 2006 12:57:22 -0800 Received: from EXVBE012-1.exch012.intermedia.net ([64.78.20.16]) by exsmtp012-2.exch012.intermedia.net with Microsoft SMTPSVC(6.0.3790.1830); Mon, 20 Nov 2006 12:57:01 -0800 X-MimeOLE: Produced By Microsoft Exchange V6.5 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable Date: Mon, 20 Nov 2006 12:57:00 -0800 Message-ID: <7379209BB115104C9F967F4234C8B70C045D4082@EXVBE012-1.exch012.intermedia.net> In-Reply-To: <4562150F.4080600@rowe-clan.net> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: [users@httpd] Tuning the MaxKeepAliveRequests and KeepAliveTimeout http.conf parameters Thread-Index: AccM5beAWbFLhqapQD6wdDtHymYQMwAAKGWA From: "Arthur Kreitman" To: X-OriginalArrivalTime: 20 Nov 2006 20:57:01.0471 (UTC) FILETIME=[6D09AAF0:01C70CE6] X-Virus-Checked: Checked by ClamAV on apache.org Subject: RE: [users@httpd] Tuning the MaxKeepAliveRequests and KeepAliveTimeout http.conf parameters And what about bad side effects from increasing the linger time? > -----Original Message----- > From: William A. Rowe, Jr. [mailto:wrowe@rowe-clan.net] > Sent: Monday, November 20, 2006 12:50 PM > To: users@httpd.apache.org > Subject: Re: [users@httpd] Tuning the MaxKeepAliveRequests and > KeepAliveTimeout http.conf parameters >=20 > Arthur Kreitman wrote: > > > > I noticed a random but all to frequent (perhaps 1 or 2 or 3 for every > > few hundred http requests) error from ap_core_output_filter (about line > > 903 in core_filters.c). The error is an os 10054 "An existing > > connection was forcibly closed by the remote host". At the same time, > > the client side would believe the server performed a premature socket > > close. > > > > Regardless of the value of KeepAliveTimeout, if I set > > MaxKeepAliveRequests to 1 (ie no keep alive) the error occurs for almost > > 80% or 90% of the http requests > > > > If I don't set MaxKeepAliveRequests, which then uses the default value, > > by setting KeepAliveTimeout between 60 and 90 seconds, the error > disappears. >=20 > DING DING DING - thank you for providing the essentials for a reproducible > test case!!! >=20 > It sounds like we are not handling keep alive disconnection in the best > manner possible, leading to confusion by the ISAPI application. >=20 > > My understanding of KeepAliveTimeout is that it plays with the socket > > linger option. What are the side effects of setting KeepAliveTimeout > > to a high value? What are the side effects of setting > > MaxKeepAliveRequests to a high value? >=20 > 1. fewer workers available to handle high load >=20 > 2. more exposure to denial of service (every daemon has an implicit denial > of service that it can handle only X parallel requests over N amount of > time - keeping N low helps mitigate this). >=20 > Contra wise, the benefit is that the next request from the same client is > handled more quickly, if you assume that 'next page' requests will happen > within the keepalivetimeout period. >=20 >=20 > --------------------------------------------------------------------- > The official User-To-User support forum of the Apache HTTP Server Project. > See for more info. > To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org > " from the digest: users-digest-unsubscribe@httpd.apache.org > For additional commands, e-mail: users-help@httpd.apache.org --------------------------------------------------------------------- The official User-To-User support forum of the Apache HTTP Server Project. See for more info. To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org " from the digest: users-digest-unsubscribe@httpd.apache.org For additional commands, e-mail: users-help@httpd.apache.org