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

Re: apr pools & memory leaks

From: Garrett Rooney <rooneg_at_electricjellyfish.net>
Date: Wed, 1 Oct 2008 14:49:57 -0400

On Wed, Oct 1, 2008 at 2:47 PM, Ben Collins-Sussman
<sussman_at_red-bean.com> wrote:

>> 2) It seems like many of the people, at least on Windows, can
>> reproduce this problem quickly. Could this just be due to running
>> requests which create/destroy a lot of memory?
>
> Definitely. A single checkout causes zillions of subpools to be
> repeatedly created and destroyed. Just look at all the looping
> constructs in libsvn_fs!
>
> If you run apache in prefork mode, you won't see this problem -- no
> apache process lasts very long.
>
> If you run apache in threaded (mpm) mode, the apache process runs
> forever, and the leak becomes obvious.

That's not entirely accurate. Many of the threaded MPMs (i.e. Worker)
use multiple subprocesses with multiple threads each, and restart each
subprocess periodically. The configuration used at Google happens to
limit it to one subprocess with many threads, and doesn't restart it
periodically, but that's not the default configuration IIRC.

-garrett

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe_at_subversion.tigris.org
For additional commands, e-mail: dev-help_at_subversion.tigris.org
Received on 2008-10-01 20:50:18 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.