My node.js server is making a call to another server using the latest (0.4.8) http.request call.
I use jMeter to run load testing. with 50-100 concurrent threads per sec, and loop 1000 times.
I observe some slow down when script keeps running. I monitor the network throughput is pretty low, CPU & memory are low too. And in the other server, the log shows that their response is quick. (within millisecond).
however, the console.log in my node.js server shows that the http.request response time begins with 200-300 ms, to 2000-3000 ms.
I'm not sure if there is a limit of concurrent http.request I can make.
please advise.
After tremendous testing, I think the average is about 300-400 request / sec for http.request with a ok server, maxSockets = 1024. Usually, I see the speed (connect to different website) is about 80-100 ms per request.