httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Spangler, Tim" <Tim_Spang...@ADP.com>
Subject RE: [users@httpd] Excessive memory utilization with mpm_worker an d glibc 2.4+
Date Tue, 27 Nov 2007 22:06:56 GMT
Thanks for the tip, it lead me down a path of investigation that lead to teh
ThreadStackSize directive for mpm_worker.  It looks like ThreadStackSize
would allow me to adjust the stack size for Apache only (my ideal
situation), however this directive doesn't seem to affect the actual memory
utilization of Apache -- for my tests I've tried using several different
sizes of ThreadStackSize, from 1024 to 8196.

Is there a certain magic for using ThreadStackSize?  The mpm_worker doc for
that directive is rather unclear.

Thanks,

-Tim

-----Original Message-----
From: Eric Covener [mailto:covener@gmail.com] 
Sent: Wednesday, November 21, 2007 4:17 PM
To: users@httpd.apache.org
Subject: Re: [users@httpd] Excessive memory utilization with mpm_worker and
glibc 2.4+

On Nov 21, 2007 2:01 PM, Spangler, Tim <Tim_Spangler@adp.com> wrote:
> Hello all,
> On the SLES 9 and Red Hat systems (glibc 2.3),   'ps -ea -o
> "pcpu,vsz,args,pagein" | grep -i httpd | grep -v grep'    reveals that
> apache is using apx 313MB of ram. No problem here, about 2.5MB per thread.
>
> On the SLES 10 system (glibc 2.4), same Apache build and settings, I 
> find that Apache is using apx 1179MB of ram, or about 9.25MB per 
> thread.  A 370% increase in memory utilization. This memory 
> utilization can also be confirmed via top, free, or whatever other 
> flavor of utility you would like to use.

Linux default  stack size is something very large when ulimit -s is set to
unlimited.  Try ThreadStackSize or ulimit -s <something other then 8M>

--
Eric Covener
covener@gmail.com

---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> 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 <URL:http://httpd.apache.org/userslist.html> 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


Mime
View raw message