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@xxxxxxxxx] Sent: Wednesday, November 21, 2007 4:17 PMTo: 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
--------------------------------------------------------------------- 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