httpd-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Adrian Marsh" <Adrian.Ma...@ubiquisys.com>
Subject RE: [users@httpd] Apache memory hog
Date Wed, 08 Apr 2009 15:46:00 GMT
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] 
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] 
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 <spc@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.Marsh@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
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


Mime
View raw message