[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

'MaxRequestsPerChild' doesn't always restart the child when the request limit is reached

From: Jonathan Ashley <jonathan.ashley_at_praxis-his.com>
Date: Mon, 21 Jul 2008 16:19:02 +0100

[ snip description of memory leak when using httpd - see
  http://subversion.tigris.org/issues/show_bug.cgi?id=3084
  for details ]

> I have found
> something that seems to provide an adequate workaround for now:
>
> MaxRequestsPerChild 1024
>
> in the httpd.conf kills the server and restarts it
> sufficiently often to prevent the out-of-memory condition.
> *As far as I can tell*, it also doesn't disturb any
> Subversion operations that are in progress, which is much
> better than a scheduled restart.

Now I find that "MaxRequestsPerChild" doesn't always restart
the child process when the request limit is reached - the
child process then continues until it crashes at 2G memory
usage.

I've seen this three times in the last week. I spotted one
unusually long-running child process and ran "svn ls" in a
shell for-loop, without the process being restarted after 1000
requests (with MaxRequestsPerChild set to 512), so I know it
isn't always working as expected.

So bang goes my workaround. Anyone else seen this? I guess it
might be an Apache issue rather than a Subversion issue, but I
couldn't find any mention of it in the Apache archives.

Using CollabNet Subversion 1.5.0 on Windows Server 2008.

regards,

--
Jon Ashley
This email is confidential and intended solely for the use of the individual to whom it is addressed. If you are not the intended recipient, be advised that you have received this email in error and that any use, disclosure, copying or distribution or any action taken or omitted to be taken in reliance on it is strictly prohibited. If you have received this email in error please contact the sender. Any views or opinions presented in this email are solely those of the author and do not necessarily represent those of Praxis. 
Although this email and any attachments are believed to be free of any virus or other defect, no responsibility is accepted by Praxis or any of its associated companies for any loss or damage arising in any way from the receipt or use thereof. The IT Department at Praxis can be contacted at it.support_at_praxis-his.com.
Praxis High Integrity Systems Ltd:
Company Number: 3302507, registered in England and Wales
Registered Address: 20 Manvers Street, Bath. BA1 1PX
VAT Registered in Great Britain: 682635707
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe_at_subversion.tigris.org
For additional commands, e-mail: dev-help_at_subversion.tigris.org
Received on 2008-07-21 17:19:17 CEST

This is an archived mail posted to the Subversion Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.