You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by "Spangler, Tim" <Ti...@ADP.com> on 2007/11/27 23:06:56 UTC
RE: [users@httpd] Excessive memory utilization with mpm_worker
an d glibc 2.4+
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 <Ti...@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
Re: [users@httpd] Excessive memory utilization with mpm_worker an
d glibc 2.4+
Posted by Max Dittrich <ma...@t-online.de>.
Hi,
Spangler, Tim schrieb:
> 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.
The same happened to me. Apache ignored the value given in
"ThreadStackSize". Then I realized that the unit of the value specified
for "ThreadStackSize" seems to be "bytes" not "kilobytes".
> ThreadStackSize 2097152
works for me.
.max
>
> 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 <Ti...@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
>
>
---------------------------------------------------------------------
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