Return-Path: Delivered-To: apmail-httpd-users-archive@httpd.apache.org Received: (qmail 29510 invoked by uid 500); 23 Nov 2002 00:20:07 -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: Delivered-To: mailing list users@httpd.apache.org Received: (qmail 29499 invoked from network); 23 Nov 2002 00:20:07 -0000 Received: from antiflux.org (HELO okcomputer.antiflux.org) (216.234.161.200) by daedalus.apache.org with SMTP; 23 Nov 2002 00:20:07 -0000 Received: by okcomputer.antiflux.org (Postfix, from userid 1033) id F09E72F9C9; Fri, 22 Nov 2002 17:20:13 -0700 (MST) Received: from localhost (localhost [127.0.0.1]) by okcomputer.antiflux.org (Postfix) with ESMTP id C7775AEA02 for ; Fri, 22 Nov 2002 17:20:13 -0700 (MST) Date: Fri, 22 Nov 2002 17:20:11 -0700 (MST) From: Alex Varju To: users@httpd.apache.org In-Reply-To: Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N Subject: Re: [users@httpd] Memory leak in Windows On Thu, 21 Nov 2002, Alex Varju wrote: > I am using Apache 2.0.43 on Windows, and am having some memory issues. > As far as I can tell, Apache is slowly growing larger and larger during > its lifetime. In stress testing, we've seen it grow as large as 2 > gigabytes. I have tried running Apache within Purify, and unfortunately > it looks like the memory is properly cleaned up when the program exits, > which makes it tricky to try to figure out where things are going wrong. Following up on my own post, it looks like this growth is related to CGI processes that serve out a lot of text. My current test suite is a mix of requests for static and dynamic pages. To narrow down the problem, I created an alias that sent all requests for my CGI content to a static page. Rerunning the test suite, the Apache process did not show unreasonable growth. I then changed the alias so that it pointed at a simple CGI that prints out 1k of text. There was still no noticeable growth. Finally, I changed the alias so that it pointed at a CGI that prints out 1 meg of text. Re-running the tests, I found that Apache grew very large, very quickly. I'm still not sure where to go from here as far as fixing the problem is concerned. Thanks, Alex. --------------------------------------------------------------------- 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