RE: Excessive memory utilization with mpm_worker an d glibc 2.4+

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxx] 
Sent: Wednesday, November 21, 2007 4:17 PM
To: users@xxxxxxxxxxxxxxxx
Subject: Re:  Excessive memory utilization with mpm_worker and
glibc 2.4+

On Nov 21, 2007 2:01 PM, Spangler, Tim <Tim_Spangler@xxxxxxx> 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@xxxxxxxxx

---------------------------------------------------------------------
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@xxxxxxxxxxxxxxxx
   "   from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx


---------------------------------------------------------------------
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@xxxxxxxxxxxxxxxx
   "   from the digest: users-digest-unsubscribe@xxxxxxxxxxxxxxxx
For additional commands, e-mail: users-help@xxxxxxxxxxxxxxxx


[Index of Archives]     [Open SSH Users]     [Linux ACPI]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Security]     [Netfilter]     [Bugtraq]     [Squid]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]

  Powered by Linux