Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

thor doesn't seem to make more than 105 parallel connections, even with -C 10000 #29

Open
magicgoose opened this issue Jan 20, 2016 · 3 comments

Comments

@magicgoose
Copy link

I'm trying to test my server with the command thor --masked --amount 10000 -C 10000 ws://localhost:8080/hello/. The report is the following:

Online               30299 milliseconds
Time taken           30299 milliseconds
Connected            9864
Disconnected         0
Failed               136
Total transferred    13.87MB
Total received       13.86MB

Durations (ms):

                     min     mean     stddev  median max
Handshaking          5       6387       4898    4768 16523
Latency              0       3             6       2 112

Percentile (ms):

                      50%     66%     75%     80%     90%     95%     98%     98%    100%
Handshaking          4768    8278    10867   11795   14049   15224   16041   16287   16523
Latency              2       3       4       5       7       9       12      15      112

Received errors:

129x                 connect ECONNRESET 127.0.0.1:8080
7x                   read ECONNRESET

It says it did (almost) 10k connections. But the server indicates that they were not made all in parallel; instead, at most 105 connections were opened at the same time.

Is there a way to force thor to make a specific number of parallel connections? Because the main reason I need it is to test how many connections my server can keep at the same time.

(Also, FYI — I'm using Jetty for the Websocket server implementation).

@cuvelierm
Copy link

If anyone knows the answer to this I would also be really interested.

@rskumar
Copy link

rskumar commented Oct 15, 2016

yeah, same happening with me. Around 80 connections opened in parallel. Either its in short batches.

@PenguinArts
Copy link

New updates at this issue? I am using ratchet, connections reach 400-500 then start to disconnect.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants