On Sat, Feb 15, 2014 at 8:24 AM, mscdex <[email protected]> wrote:
> By disabling the use of any Agent, you're creating a separate socket for
> that request that is not apart of any connection pool.
Ok, if i am reading it correctly, {Agent:'false'} disables any connection
pooling, therefore setting:
require('http').globalAgent.maxSockets = <some very high value>
won't matter at all?
The client and the server are on different machine, but within same subnet.
If it matters, tomcat is serving the requests from the other end.
I initiated 60 http requests per second, with 10 workers ( using
async.parallel, assuming this will fire those 10 workers immediately and
thereby each would throw 60 request of their own) .
This translates to 600 r/s ~ every request in 1.67 ms.
I observed as, i reached, open *file handles* limit (currently set to
1024), i began seeing
ERROR: read ECONNRESET
ERROR: connect ECONNREFUSED
I increased ulimit -n to 4096 ( both server and client ). and the max open
file handles limit to ~ 403945
and saw marked improvement, as expected.
What makes me curious is as i reach *ulimit -n *i get increasing
turnaround time. This would be due to the fact that i have exhausted my
hard limit to open files, but lots of responses were received by then,
wont node, flush the current socket and make them available for reuse, or
is there is a way to explicitly flush such a socket when response is
received ?
Also, just to clear my concept, (ulimit -n) <= (/proc/sys/fs/file-max) ?
Thanks
--
--
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 [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/nodejs?hl=en?hl=en
---
You received this message because you are subscribed to the Google Groups
"nodejs" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.