httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Andrea Simonini <>
Subject Re: [users@httpd] YAAMUQ (Yet Another Apache Memory Usage Question)
Date Thu, 17 Feb 2005 10:47:13 GMT
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


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 <URL:> for more info.
To unsubscribe, e-mail:
   "   from the digest:
For additional commands, e-mail:

View raw message