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

Total failure in dav layer when >1024 files already open

From: Erik Scrafford <erik_at_scrafford.org>
Date: 2006-06-02 05:00:22 CEST

I've run into a strange problem where the dav layer completely fails
when more than 1024 files are opened. Every request ends up returning
a PROPFIND error (when linked against subversion 1.3 - 1.2 seems to
fail in a different manner). svn:// and file:// urls still seem to
work fine in this case, only http:// and https:// urls fail. I've
created a repro case that I'm attaching to this message. I'm on
macosx 10.4.6, and I have no idea if this test code will work on
other systems. Below is the output when running my repro program. Why
do I have that many files open? ZigVersion is monitoring it's working
copies by using kqueue/kevents, and it ends up keeping a file handle
open on each file/directory. So it's easy to see how I quickly exceed
1024 files open in many cases.

[eriks_at_eriks-g5:~/files/svntest] ./svn-broken-http svn://dev-
server.local
Before file handles used
------------------------
UUID for url: ca633d2f-06ef-0310-9b47-e91f935bd6fd

number of the last handle opened: 1024
After file handles used
-----------------------
UUID for url: ca633d2f-06ef-0310-9b47-e91f935bd6fd
[eriks_at_eriks-g5:~/files/svntest] ./svn-broken-http http://dev-
server.local/svn
Before file handles used
------------------------
UUID for url: ca633d2f-06ef-0310-9b47-e91f935bd6fd

number of the last handle opened: 1024
After file handles used
-----------------------
SVN Error Code: 175002
PROPFIND request failed on '/svn'
PROPFIND of '/svn': could not connect to server (http://dev-
server.local)

Erik Scrafford
ZigZig Software - http://zigzig.com/

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org

  • application/octet-stream attachment: Makefile
Received on Fri Jun 2 05:00:59 2006

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.