On Tue, Apr 7, 2009 at 9:22 AM, Adrian Marsh <adrian.ma...@ubiquisys.com> wrote: > Thanks guys for the help so far... > > Lets just pretend for a moment that I don't know much about Apache, pthreads > or pre-forks in any specific detail... how would I find out what threading > model is being used?
The thread model is determined at compile time. At your system prompt, you can issue: apache2 -l or, for a little clearer picture, apache2 -V and the server MPM will be clearly stated in lines 7-9.....for example: Server version: Apache/2.2.8 (Ubuntu) Server built: Jun 25 2008 13:54:13 Server's Module Magic Number: 20051115:11 Server loaded: APR 1.2.11, APR-Util 1.2.12 Compiled using: APR 1.2.11, APR-Util 1.2.12 Architecture: 32-bit Server MPM: Prefork threaded: no forked: yes (variable process count) Server compiled with.... -D APACHE_MPM_DIR="server/mpm/prefork" -D APR_HAS_SENDFILE -D APR_HAS_MMAP -D APR_HAVE_IPV6 (IPv4-mapped addresses enabled) -D APR_USE_SYSVSEM_SERIALIZE -D APR_USE_PTHREAD_SERIALIZE -D SINGLE_LISTEN_UNSERIALIZED_ACCEPT -D APR_HAS_OTHER_CHILD -D AP_HAVE_RELIABLE_PIPED_LOGS -D DYNAMIC_MODULE_LIMIT=128 -D HTTPD_ROOT="" -D SUEXEC_BIN="/usr/lib/apache2/suexec" > Ulimit does return 10240 on the command line. Should I put the ulimit -s >2048 into the init.d script for httpd ? > > As a side project, I'm trying to get my basic SSL and LDAP config working in > Collab.nets version of subversion, which includes an apache binary custom for > them I believe. I think I almost have that working, so I plan to switch the > system over to that, and see if the problem still occurs. If it does, then I > may have an official support route to follow. > > Adrian > > > -----Original Message----- > From: Eric Covener [mailto:cove...@gmail.com] > Sent: 07 April 2009 01:50 > To: users@httpd.apache.org > Subject: Re: [us...@httpd] Apache memory hog > > On Mon, Apr 6, 2009 at 7:54 PM, Sean Conner <s...@conman.org> wrote: >> It was thus said that the Great Eric Covener once stated: >>> On Fri, Apr 3, 2009 at 10:08 AM, Adrian Marsh >>> <adrian.ma...@ubiquisys.com> wrote: >>> > Am trying MaxMemFree 30000 (30mb? - pure guess number). >>> >>> Far too large, it's per-thread. Try 1MB. >> >> This triggered something I recently learned---what threading model are you >> using under Apache? Pre-fork? Or pthreads? I ask because pthreads will >> allocate stack space for each thread, and the amount used is the default >> mount allocated per stack per process: >> >> http://boston.conman.org/2007/11/05.1 >> >> Rather nasty shock when I found out. > > The wasted stack space doesn't shows up as a high VSZ, but not RSS. > > -- > Eric Covener > cove...@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-unsubscr...@httpd.apache.org > " from the digest: users-digest-unsubscr...@httpd.apache.org > For additional commands, e-mail: users-h...@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-unsubscr...@httpd.apache.org > " from the digest: users-digest-unsubscr...@httpd.apache.org > For additional commands, e-mail: users-h...@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-unsubscr...@httpd.apache.org " from the digest: users-digest-unsubscr...@httpd.apache.org For additional commands, e-mail: users-h...@httpd.apache.org