Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
node.js response time increase with concurrent connections
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  11 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
jason. 桂林  
View profile   Translate to Translated (View Original)
 More options Aug 23 2012, 1:34 am
From: jason.桂林 <guil...@gmail.com>
Date: Thu, 23 Aug 2012 13:34:31 +0800
Local: Thurs, Aug 23 2012 1:34 am
Subject: [nodejs] node.js response time increase with concurrent connections

test by node.js http helloworld

10 concurrent connections
response: 0ms(min) 19ms(max) 1ms(avg)

30 concurrent connections
response: 2ms(min) 20ms(max) 4ms(avg)

100 concurrent connections
response: 7ms(min) 43ms(max) 15ms(avg)

1000 concurrent connections
response: 6ms(min) 212ms(max) 167ms(avg)

We can see that, node.js response time increased with concurrent
connections, any one can explain this?

And how to avoid this problem, and if it is not http but tcp, will it be an
critical issue for multi player online game server, there will be many
concurrent connections.

--
Best regards,

桂林 (Gui Lin)

guileen@twitter <https://twitter.com/#!/guileen>
桂糊涂@weibo <http://weibo.com/guileen>
guileen@github <https://github.com/guileen>


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Hitesh Joshi  
View profile  
 More options Aug 23 2012, 1:37 am
From: Hitesh Joshi <hitesh.webma...@gmail.com>
Date: Wed, 22 Aug 2012 22:37:17 -0700 (PDT)
Local: Thurs, Aug 23 2012 1:37 am
Subject: Re: [nodejs] node.js response time increase with concurrent connections

I don't think this is a problem. Problem should occur when the response
time is in SECONDS like 3-4 second.

I really think nodejs can handle millions of concurrent users on a good
server.

Read this
, http://blog.caustik.com/2012/04/10/node-js-w250k-concurrent-connections/


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Yi Tan  
View profile   Translate to Translated (View Original)
 More options Aug 23 2012, 1:44 am
From: Yi Tan <yi2...@gmail.com>
Date: Thu, 23 Aug 2012 13:44:33 +0800
Local: Thurs, Aug 23 2012 1:44 am
Subject: Re: [nodejs] node.js response time increase with concurrent connections

use cluster:  http://nodejs.org/api/cluster.html

Regards,

ty

2012/8/23 jason.桂林 <guil...@gmail.com>


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
hd nguyen  
View profile  
 More options Aug 23 2012, 6:43 am
From: hd nguyen <nguyenhd2...@gmail.com>
Date: Thu, 23 Aug 2012 17:43:24 +0700
Local: Thurs, Aug 23 2012 6:43 am
Subject: Re: [nodejs] node.js response time increase with concurrent connections

As Yi Tan suggested, using cluster to utilize multicore server should be
better.

On Thu, Aug 23, 2012 at 12:37 PM, Hitesh Joshi <hitesh.webma...@gmail.com>wrote:

--
Nguyen Hai Duy
Mobile : 0914 72 1900
Yahoo: nguyenhd_lucky

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Ben Noordhuis  
View profile  
 More options Aug 23 2012, 6:51 am
From: Ben Noordhuis <i...@bnoordhuis.nl>
Date: Thu, 23 Aug 2012 12:51:41 +0200
Local: Thurs, Aug 23 2012 6:51 am
Subject: Re: [nodejs] node.js response time increase with concurrent connections

Your post omits crucial details, like on what OS you tested it, on
what kind of network, with what tool, what the tool's settings were,
etc.

All one can say by the numbers posted is that the response time seems
to scale linearly - which isn't all that bad, really.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Murvin Lai  
View profile  
 More options Aug 23 2012, 8:58 pm
From: Murvin Lai <murvin...@gmail.com>
Date: Thu, 23 Aug 2012 17:58:44 -0700
Local: Thurs, Aug 23 2012 8:58 pm
Subject: Re: [nodejs] node.js response time increase with concurrent connections

this is normal because you are running with default 1024 open file limit.

As the socket pool is limited to 1024 sockets, and you have 1000 concurrent
requests, requests will be accumulated in the socket queue and thus, have
to wait unitl other requests are done from the pool and released.

easy way is to change the /etc/security/limits.conf file and increase the
open file soft/hard limit.   Once you increase that, you will be fine with
1000 concurrent requests.

but there are other factors and will overwrite the limit.  please see my
website for tips... murvinlai.com


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Matt  
View profile  
 More options Aug 23 2012, 11:25 pm
From: Matt <hel...@gmail.com>
Date: Thu, 23 Aug 2012 23:25:49 -0400
Local: Thurs, Aug 23 2012 11:25 pm
Subject: Re: [nodejs] node.js response time increase with concurrent connections

This is not a correct response. If you hit the open file limit usually node
will crash (unless you protect against that). It won't ever slow down
because of it. And it won't ever just pause connections until the limit is
lowered. It will throw an error or an exception.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
桂林  
View profile  
 More options Aug 23 2012, 11:30 pm
From: 桂林 <guil...@gmail.com>
Date: Fri, 24 Aug 2012 11:30:29 +0800
Local: Thurs, Aug 23 2012 11:30 pm
Subject: Re: [nodejs] node.js response time increase with concurrent connections

Anyone argue with this can make a test on it.

I am test on MacOSX, benchmark tool is write in node.js.

在 2012-8-24,上午11:25, Matt 写道:


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Matt  
View profile  
 More options Aug 23 2012, 11:30 pm
From: Matt <hel...@gmail.com>
Date: Thu, 23 Aug 2012 23:30:25 -0400
Local: Thurs, Aug 23 2012 11:30 pm
Subject: Re: [nodejs] node.js response time increase with concurrent connections

Nobody is arguing with it. You're saying response time increases linearly
with load... That's... great.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
darcy  
View profile  
 More options Aug 26 2012, 10:09 pm
From: darcy <freeda...@gmail.com>
Date: Sun, 26 Aug 2012 19:09:14 -0700 (PDT)
Local: Sun, Aug 26 2012 10:09 pm
Subject: Re: [nodejs] node.js response time increase with concurrent connections

if your server has reach the cpu upper limit(cpu idle approach 0%) with n
clients, then the response time will increase with the client number linear.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Murvin Lai  
View profile  
 More options Aug 27 2012, 6:57 pm
From: Murvin Lai <murvin...@gmail.com>
Date: Mon, 27 Aug 2012 15:56:51 -0700
Local: Mon, Aug 27 2012 6:56 pm
Subject: Re: [nodejs] node.js response time increase with concurrent connections

I'm not arguing or anything, but that's what I observed and recorded during
load testing.  Not just once but load testing over weeks, conducted by not
just me but a whole team of developers.

Node.js itself will not crash if hitting open file limit, but some sockets
will hang up, and response get slower, etc.

No matter what, one of the solutions is to increase the open file to
...e.g. over 10K.   then you will be safe in most cases.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »