On Sun, Nov 23, 2008 at 3:05 PM, Chris Anderson <[EMAIL PROTECTED]> wrote: > On Sun, Nov 23, 2008 at 11:54 AM, Paul Davis > <[EMAIL PROTECTED]> 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. >
Yeah. After looking at the http view code I think I can add the appropriate logic in about 8 lines so I think that's what I'm gonna run with. Hopefully I'll have all of the view logic banged out in an hour or two. > Chris > > > -- > Chris Anderson > http://jchris.mfdz.com >
