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

Re: Reading old "entries" files: "Too many open files"

From: Julian Foad <julianfoad_at_btopenworld.com>
Date: Tue, 25 Aug 2009 18:32:27 +0100

Greg Stein wrote:
> The attempt to open 'entries' is just where it failed. If you use
> 'lsof' on that process (pause it via ^S or ^Z), then you will probably
> see the open files are all .svn/wc.db databases.
>
> (that's my best guess; I haven't actually run lsof, but others have
> reported it is the databases)

Confirmed. Thanks for explaining that.

> And the open-database count will drop from some multiple of 300 to
> just a couple when we shift to a single .svn subdir.

That will be OK for the command-line client, but if I were writing a
long-lived client, how would I go about closing those db files after
doing all I needed to do for the time being in a particular WC?

Specifically, I'm thinking, could I try putting such a "close" into the
loop over all targets in svn_client_update3() and see if it works?

- Julian

------------------------------------------------------
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=462&dsMessageId=2387238
Received on 2009-08-27 00:05:56 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.