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

RE: Something that looks like it might be a memory leak in the server

From: Jonathan Ashley <jonathan.ashley_at_praxis-his.com>
Date: Thu, 17 Jul 2008 10:07:00 +0100

> > > Today, I observed that when started, the httpd process used around
> 400M. Over
> > > the next four hours and twenty minutes, the memory usage of the
> process
> > > climbed steadily, until it exited.
> >
> > There is an existing issue filed on this:
> >
> > http://subversion.tigris.org/issues/show_bug.cgi?id=3084
> >
> > I do not know any more than that, just remembered there was
> an issue.
>
> Our Windows Apache 2.0.59/svn 1.4.6 crashes seemed to be
> reduced by adding this to the httpd.conf:
>
> MaxMemFree 512
>
> http://httpd.apache.org/docs/2.0/mod/mpm_common.html#maxmemfree
>
>
> We also turned off https:// access which could have helped too...
>
> Our windows servers have never been as stable as our Solaris
> servers, and the Solaris servers get at least 10x the svn
> traffic (~40 svn requests/sec).

Thanks for your replies. Unfortunately, the use of Windows is something
imposed on me - it would not have been my first, second or third choice
for a critical server. 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.

It's a bodge that covers up the real underlying memory-leak problem,
but I guess that beats having it exposed...

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-17 11:07:26 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.