Return-Path: Delivered-To: apmail-httpd-users-archive@www.apache.org Received: (qmail 28456 invoked from network); 8 Apr 2009 15:46:43 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 8 Apr 2009 15:46:43 -0000 Received: (qmail 22191 invoked by uid 500); 8 Apr 2009 15:46:39 -0000 Delivered-To: apmail-httpd-users-archive@httpd.apache.org Received: (qmail 22170 invoked by uid 500); 8 Apr 2009 15:46:39 -0000 Mailing-List: contact users-help@httpd.apache.org; run by ezmlm Precedence: bulk Reply-To: users@httpd.apache.org list-help: list-unsubscribe: List-Post: List-Id: Delivered-To: mailing list users@httpd.apache.org Received: (qmail 22045 invoked by uid 99); 8 Apr 2009 15:46:33 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 08 Apr 2009 15:46:33 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of Adrian.Marsh@ubiquisys.com designates 82.71.227.93 as permitted sender) Received: from [82.71.227.93] (HELO ubiquisys.com) (82.71.227.93) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 08 Apr 2009 15:46:23 +0000 X-MimeOLE: Produced By Microsoft Exchange V6.5 Content-class: urn:content-classes:message MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Date: Wed, 8 Apr 2009 16:46:00 +0100 Message-ID: <094A73044298734FB7D58CAAA319E1D6018E8E17@UBIQ-SERV1.ubiquisys.local> In-Reply-To: <094A73044298734FB7D58CAAA319E1D6018E8ADD@UBIQ-SERV1.ubiquisys.local> X-MS-Has-Attach: X-MS-TNEF-Correlator: Thread-Topic: [users@httpd] Apache memory hog thread-index: Acm3Gud6o9u7zPXVSqe/91Uh6yubBAAaD41wADdYyjA= References: <094A73044298734FB7D58CAAA319E1D6018937CF@UBIQ-SERV1.ubiquisys.local> <49D5D8C7.9090508@ice-sa.com> <094A73044298734FB7D58CAAA319E1D6018938A8@UBIQ-SERV1.ubiquisys.local> <1238764532.7491.116.camel@strangepork.mintel.co.uk> <094A73044298734FB7D58CAAA319E1D6018938C0@UBIQ-SERV1.ubiquisys.local> <1404e5910904030700m70004f6aq28e7aa6c62834749@mail.gmail.com> <094A73044298734FB7D58CAAA319E1D6018938E1@UBIQ-SERV1.ubiquisys.local> <1404e5910904030851j2ca885dbr4834dcad5ed73624@mail.gmail.com> <20090406235456.GA32541@brevard.conman.org> <1404e5910904061750n72c4b267m2450b7e3e056d560@mail.gmail.com> <094A73044298734FB7D58CAAA319E1D6018E8ADD@UBIQ-SERV1.ubiquisys.local> From: "Adrian Marsh" To: X-Virus-Checked: Checked by ClamAV on apache.org Subject: RE: [users@httpd] Apache memory hog Ok, So I've switched to the collab.net version of the subversion package. = This includes a 2.2.8 version of apache. They also only include 3 = modules I their config (python_module, dav_svn_module, = authz_svn_module). This seems to be enough to get SSL and LDAP lookups = working for me. After around 30mins of running, memory footprint is: 22876 csvn 15 0 119m 17m 3492 S 0.0 0.1 0:02.21 httpd 22875 csvn 15 0 114m 12m 3564 S 0.0 0.1 0:01.08 httpd 22874 csvn 15 0 112m 11m 3588 S 0.0 0.1 0:00.79 httpd 23041 csvn 15 0 113m 10m 3052 S 0.0 0.1 0:02.32 httpd 22886 csvn 15 0 113m 10m 3544 S 0.0 0.1 0:00.77 httpd 23043 csvn 15 0 113m 10m 2976 S 0.0 0.1 0:00.51 httpd 22873 csvn 15 0 111m 9.9m 3588 S 0.0 0.1 0:01.03 httpd 22877 csvn 15 0 111m 9.9m 3548 S 0.0 0.1 0:00.44 httpd 22885 csvn 15 0 109m 8368 3444 S 0.0 0.1 0:00.44 httpd 23042 csvn 15 0 109m 8088 3464 S 0.0 0.1 0:00.23 httpd 22872 csvn 18 0 53780 2720 1004 S 0.0 0.0 0:00.00 httpd So each httpd process started with approx 3-5Mb each, and have grown to = say 17Mb. Certainly better than my previous setup. I'll monitor over the next week and see if it stays at that level. Adrian -----Original Message----- From: Adrian Marsh [mailto:Adrian.Marsh@ubiquisys.com]=20 Sent: 07 April 2009 14:23 To: users@httpd.apache.org Subject: RE: [users@httpd] Apache memory hog 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? 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:covener@gmail.com]=20 Sent: 07 April 2009 01:50 To: users@httpd.apache.org Subject: Re: [users@httpd] Apache memory hog On Mon, Apr 6, 2009 at 7:54 PM, Sean Conner wrote: > It was thus said that the Great Eric Covener once stated: >> On Fri, Apr 3, 2009 at 10:08 AM, Adrian Marsh >> wrote: >> > Am trying MaxMemFree 30000 =A0 =A0(30mb? - pure guess number). >> >> Far too large, it's per-thread. Try 1MB. > > =A0This triggered something I recently learned---what threading model = are you > using under Apache? =A0Pre-fork? =A0Or pthreads? =A0I ask because = pthreads will > allocate stack space for each thread, and the amount used is the = default > mount allocated per stack per process: > > =A0 =A0 =A0 =A0http://boston.conman.org/2007/11/05.1 > > =A0Rather nasty shock when I found out. The wasted stack space doesn't shows up as a high VSZ, but not RSS. --=20 Eric Covener covener@gmail.com --------------------------------------------------------------------- The official User-To-User support forum of the Apache HTTP Server = Project. See 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 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 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