-
Notifications
You must be signed in to change notification settings - Fork 2.6k
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
What is the maximum client concurrent connections that web socket server can accept? #1130
Comments
Hello @Kojesnik, please provide your example application. Best regards, |
I found the problem. I tried to create a separate application and test it on our server to see is it a problem with threads size / memory. By default number of WebSocketWorkers = Runtime.getRuntime().availableProcessors(). For me it is 12. Any ideas on what can be the problem? Best regards, |
Figured out, that for some reason your lib creating so much open files. |
That's an interesting observation |
Even I am facing similar situation. Any workaround/tweaks to accept higher number of connections? |
Are those socket files? Maybe thats why sockets are getting extinguished and its capping at the max you mentioned
What framework did you switch to? Or did you just implement it yourself? |
@DevasiaThomas as I remember, I used netty |
@Kojesnik @bhaswanth88 This blogpost and its associated whitepaper is what got me here. It's benchmark shows that this library can go to 10k connections. The benchmarks stops there. Maybe you can try run the benchmark in your env to find the culprit? |
I tried running the benchmark myself upto 20k connections(200 rounds, 100 per round).. Apparently increments of 100 connections is fine, but when i tried ramping up by 1000 connections per round - it didn't progress beyond the second round 😅 .. @marci4 Maybe there is some clue in the above behavior? Another thing that was observed was that the benchmark after 200 rounds didn't have success closing the connections. I ended up killing the client process. but the socket files (lsof) persisted in the server for 2 hours and maybe more(my machine auto restarted due to updates) |
Hi, Me and my team trying to use your lib as a ws server. And we faced a 3727 connections limit and nothing helps.
In another issue, u mentioned that it can be thread limit, but no, I have been tested it, and server can handle a big amount of threads. What can be the problem? What could it be?
The text was updated successfully, but these errors were encountered: