Return-Path: Delivered-To: new-httpd-archive@hyperreal.org Received: (qmail 8203 invoked by uid 6000); 4 Feb 1998 19:23:10 -0000 Received: (qmail 8183 invoked from network); 4 Feb 1998 19:23:09 -0000 Received: from twinlark.arctic.org (204.62.130.91) by taz.hyperreal.org with SMTP; 4 Feb 1998 19:23:09 -0000 Received: (qmail 20235 invoked by uid 500); 4 Feb 1998 19:35:39 -0000 Date: Wed, 4 Feb 1998 11:35:39 -0800 (PST) From: Dean Gaudet To: Apache list Subject: Re: A question on ka requests In-Reply-To: <34D899AA.A7096A1D@prairie.nodak.edu> Message-ID: X-Comment: Visit http://www.arctic.org/~dgaudet/legal for information regarding copyright and disclaimer. Organization: Transmeta Corp. MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: new-httpd-owner@apache.org Precedence: bulk Reply-To: new-httpd@apache.org >From child_main: while ((r = read_request(current_conn)) != NULL) { /* read_request_line has already done a * signal (SIGUSR1, SIG_IGN); */ (void) update_child_status(my_child_num, SERVER_BUSY_WRITE, r); process_request(r); #if defined(STATUS) increment_counts(my_child_num, r); #endif if (!current_conn->keepalive || current_conn->aborted) break; destroy_pool(r->pool); (void) update_child_status(my_child_num, SERVER_BUSY_KEEPALIVE, (request_rec *) NULL); i.e. what are you referring to? It cleans the request pool. It doesn't clean the connection pool until the connection is done. If you can show a stock server consuming lots of memory on a keep alive connection I wouldn't mind seeing it. Dean On Wed, 4 Feb 1998, Igor Tatarinov wrote: > Hi all, > > I have a simple question. Why is it that Apache treats requests coming > from a keep-alive connection differently from requests from a regular > connection? > > I mean, why doesn't it clean its pools after each ka request like it does > after each regular request. > > Now we have two parameters MaxKeepAliveRequests and MaxRequestsPerChild. > As I understand, if MaxKeepAliveRequests is set to 0 (and > MaxRequestsPerChild is not very small) it is very easy to make Apache > consume a lot of memory (create a bunch of ka connections and request > a small file so that you don't need a lot of bandwidth). > > As for my problem, I want to have some cleanup done after each request > (whether it's ka or not doesn't matter). Any way I can do it? > > or am I missing something? > igor >