-
Notifications
You must be signed in to change notification settings - Fork 7.3k
Problem while doing stress testing on TCP server #2987
Comments
I can think of a couple of reasons. Can you post the output of |
Ok, here is the information. [root@itools-master ~]# uname -a [root@itools-master ~]# ulimit -a |
1000 connection for time and strace -c: real 1m30.174s time seconds usecs/call calls errors syscall 89.67 0.350389 13 27082 epoll_wait 100.00 0.390740 139604 1003 total |
1200 connection : real 1m26.742s time seconds usecs/call calls errors syscall 58.11 0.138323 0 597602 epoll_wait 100.00 0.238028 2441425 587221 total |
With how many concurrent connections are you testing it? According to the output of |
I found that I have made a silly mistake, I am sorry that I ignored to ulimit the number of open files. I will try it later. |
No problem. Does that mean I can close the issue? |
Yeah, thank you for your help. I will close it. |
issue nodejs#2987 makes the point that crypto.pbkdf2 should not fail silently and accept invalid but numeric values like NaN and Infinity. We already check if the keylen is lower than 0, so extending that to NaN and Infinity should make sense. Fixes: nodejs/node#2987 PR-URL: nodejs/node#3029 Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl> Reviewed-By: Brian White <mscdex@mscdex.net> Reviewed-By: Fedor Indutny <fedor.indutny@gmail.com> Reviewed-By: Sakthipriyan Vairamani <thechargingvolcano@gmail.com>
issue nodejs#2987 makes the point that crypto.pbkdf2 should not fail silently and accept invalid but numeric values like NaN and Infinity. We already check if the keylen is lower than 0, so extending that to NaN and Infinity should make sense. Fixes: nodejs/node#2987 PR-URL: nodejs/node#3029 Reviewed-By: Ben Noordhuis <info@bnoordhuis.nl> Reviewed-By: Brian White <mscdex@mscdex.net> Reviewed-By: Fedor Indutny <fedor.indutny@gmail.com> Reviewed-By: Sakthipriyan Vairamani <thechargingvolcano@gmail.com>
Hi all,
We are using node.js(version 0.6.11) on CentOS(version 6.0) to build a TCP server. While I doing the stress testing, I found a problem:
The CPU usage of node.js deamon is only about 5~6% when less than 1150 connection established. But it rises to 100%
rapidly when only a few more connection established.
Does anyone know why it works like that? Is it a bug in node.js?
Here is the demo code:
The text was updated successfully, but these errors were encountered: