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

Re: Ruby bindings' excessive memory usage

From: Kouhei Sutou <kou_at_cozmixng.org>
Date: 2005-12-15 12:26:25 CET


In <20051213.225243.21519081.kou@cozmixng.org>
  "Re: Ruby bindings' excessive memory usage" on Tue, 13 Dec 2005 22:52:43 +0900 (JST),
  Kouhei Sutou <kou@cozmixng.org> wrote:

> In <B918BEC2-A67F-4E82-AA64-4AFFB166A128@site5.com>
> "Ruby bindings' excessive memory usage" on Mon, 12 Dec 2005 20:58:49 +1100,
> David Felstead <dfelstead@site5.com> wrote:
> > Hi all - I've discovered what looks to be a problem with the SVN ruby
> > bindings where they begin to consume large amounts of memory whilst
> > adding a large number of small files to a repository. My _guess_ is
> > that there are APR pools not being disposed of or reused properly,
> > but this is complete conjecture on my part.
> This problem is caused because Svn::Client::Context#add (and
> some Context methods) uses its pool not sub-pool of its
> pool. Thus APR pools memory can't be recycled by Ruby's GC
> until Svn::Client::Context is alive.

> I will fix this problem by making sub-pool.

Done in r17795.
This problem seems to be fixed.


To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Thu Dec 15 12:28:01 2005

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.