2011/9/9 Randall Leeds <[email protected]>: > I see "emfile" in the first of those log which indicates your CouchDB > instance has reached the maximum number of open files. > If this is an "idle" server, with no clients connected, that may mean there > is a leak somehow in file descriptors and we should open a ticket to look > into it. > If the server is under load from clients it is likely you just need to > change resource limits. > See this wiki page: > https://wiki.apache.org/couchdb/Performance#Resource_Limits
With the help of rnewson on #couchdb, I was able to find that this problem is due to number of open files. It happened that the couchdb server is holding lot of connections for long time even after the remote end is closed. I could reproduce it by sending multiple curl requests to the couchdb server with a timeout. for i in `seq 1000`; do curl -m1 'http://localhost:5984/foo/_changes?feed=continuous'; echo $i; done I also found that my couchdb server was creating too many couchpy processes, but I couldn't reproduce that yet. I'll spend some time exploring it in next couple days and send an update. Thanks for your support. Anand
