Return-Path: Delivered-To: apmail-httpd-users-archive@www.apache.org Received: (qmail 98946 invoked from network); 17 Feb 2005 10:47:26 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur-2.apache.org with SMTP; 17 Feb 2005 10:47:26 -0000 Received: (qmail 24818 invoked by uid 500); 17 Feb 2005 10:47:17 -0000 Delivered-To: apmail-httpd-users-archive@httpd.apache.org Received: (qmail 24656 invoked by uid 500); 17 Feb 2005 10:47:16 -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 24610 invoked by uid 99); 17 Feb 2005 10:47:16 -0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests=RCVD_BY_IP,SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (hermes.apache.org: domain of andrea.simonini@gmail.com designates 64.233.170.202 as permitted sender) Received: from rproxy.gmail.com (HELO rproxy.gmail.com) (64.233.170.202) by apache.org (qpsmtpd/0.28) with ESMTP; Thu, 17 Feb 2005 02:47:15 -0800 Received: by rproxy.gmail.com with SMTP id 40so195014rnz for ; Thu, 17 Feb 2005 02:47:13 -0800 (PST) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:reply-to:to:subject:cc:in-reply-to:mime-version:content-type:content-transfer-encoding:references; b=KwM2bXtmTnTSKZbSvJihNF1IR+dlNEYWY3XyNu39/KJIJCE1xJVVSvBz+qcCFYOWc7LZIoioRZETlWvSaZoK06gdpZSbIIw/Sh/r0AlhIX5UjU+y09zv/xnybzWKZFbTGWlpI5hx/MmLn51ejatmorQvnn29v1BjZ3wFm64lhJ0= Received: by 10.38.179.70 with SMTP id b70mr63489rnf; Thu, 17 Feb 2005 02:47:13 -0800 (PST) Received: by 10.38.8.46 with HTTP; Thu, 17 Feb 2005 02:47:13 -0800 (PST) Message-ID: <5204b7960502170247411a1473@mail.gmail.com> Date: Thu, 17 Feb 2005 11:47:13 +0100 From: Andrea Simonini Reply-To: Andrea Simonini To: Joshua Slive Cc: users@httpd.apache.org In-Reply-To: Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit References: <5204b796050216094434e89d70@mail.gmail.com> X-Virus-Checked: Checked Subject: Re: [users@httpd] YAAMUQ (Yet Another Apache Memory Usage Question) X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N Hi Joshua, thank you very much for your answer. As you stated in the mail the problem is understanding where all this memory gets allocated. I've forgot to mention that all the threads are created at startup so the process, immediately at startup uses 2.6GB. The only is to look at the source code of apache itself, but i'm new and not able to do that. That's the reason why i'm asking for some help, maybe one of you have already seen (and solved) the same problem. In the mean time i'm doing some trials with worker MPM, maybe it has a different memory usage pattern and i think it could fit for me. Thanks again Andrea On Wed, 16 Feb 2005 13:25:00 -0500, Joshua Slive wrote: > On Wed, 16 Feb 2005 18:44:51 +0100, Andrea Simonini > wrote: > > > Because my custom module is not usign shared memory, I've configured > > the httpd in order to start only one child server. To make it process > > a lot of requests (and because some web servers are slow) i've > > increased the number of threads per process from 100 to 256. > > What I see is that the process is grabbing almost the whole address > > space of a process on a 32bit environment (2.7GB on 3GB). Some > > measures taken on my box shows that every thread is allocating 10MB > > !!. > > During my analysis i've found that the memory usage is related to the > > virtual memory, it is not a problem of reserved memory. It seems that > > the server is doing a lot of malloc(s) without using that space. > > 10MB per apache worker is not an absurdely large amount of space. It > is common for people to use this much memory if they run large > mod_perl/php/etc scripts. The core apache modules shouldn't be using > anywhere near that amount, however. > > So the first thing to do is to identify exactly what your apache > workers are up to. > > Joshua. > --------------------------------------------------------------------- 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