couchdb-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Chris Anderson" <>
Subject Re: Closing Files
Date Sun, 23 Nov 2008 20:05:19 GMT
On Sun, Nov 23, 2008 at 11:54 AM, Paul Davis
<> wrote:
> Doing a couple tests it looks like mochiweb is using a single process
> for an entire Keep-Alive connection. Thus when under load from the
> Futon tests, it can still run out of descriptors. Testing from curl
> has the expected effect of closing the FD for every request.

This sounds like our Couch. ;)

> The next two ideas I had were to use either an LRU cache similar to
> couch_server.erl or add a try/after block around requests in
> couch_httpd_view.erl. I'm starting to lean towards the slight changes
> to couch_httpd_view.erl at the moment because it seems to be the
> better of the two even though I was trying to keep changes to it as
> minimal as possible. (I've changed about 5-10 lines so far, and those
> were mostly changing module names on function calls.)
> Anyone got any input?

Keeping the changes near the view code sounds smart. I've pulled your
branch, but I'm driving up to Seattle for the night so I don't know
when I'll have a chance to investigate.


Chris Anderson

View raw message