Hi, I have no idea, but can you send me a script that helps me reproduce the bug?
I can act on that, Nuno On Mon, Apr 2, 2012 at 12:31 PM, Mark Hahn <m...@hahnca.com> wrote: > I am using nano (nuno's excellent couch module) and Mikeal's excellent > Request module to access couch db. I'm processing about 5 to 25 PUTs/sec > and around 200 GETs/sec. > > In a specific situation I am seeing a PUT (create new doc) take 10 to 20 > seconds to respond. It takes 5 seconds to get the http to couch, 300ms for > couch to respond, and 5 more seconds to get the callback from nano. > > I assumed it was the famous http agent starvation so I added this to the > beginning of my main module ... > > (require 'http').Agent.defaultMaxSockets = 200 > > But this didn't help. Does anyone have any idea what could cause this > bottleneck? Any suggestions for debugging the problem? I can repeat the > problem at will. I hate to add log prints to nano and request, but if I > have to then so be it. > > I also just realized if it was agent starvation the delay would only be in > the request timing and not the response, right? > > -- > Job Board: http://jobs.nodejs.org/ > Posting guidelines: > https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines > You received this message because you are subscribed to the Google > Groups "nodejs" group. > To post to this group, send email to nodejs@googlegroups.com > To unsubscribe from this group, send email to > nodejs+unsubscr...@googlegroups.com > For more options, visit this group at > http://groups.google.com/group/nodejs?hl=en?hl=en > -- Job Board: http://jobs.nodejs.org/ Posting guidelines: https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines You received this message because you are subscribed to the Google Groups "nodejs" group. To post to this group, send email to nodejs@googlegroups.com To unsubscribe from this group, send email to nodejs+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/nodejs?hl=en?hl=en