Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Spring Websockets Max Concurrent connections

What is the max number of concurrent websocket connections a tomcat instance can support? We are looking to serve 20000 connections at any given time. What would be the recommended number of tomcat instances to support the load?

like image 367
Robin Varghese Avatar asked Dec 08 '14 21:12

Robin Varghese


People also ask

Would WebSockets be able to handle 1000000 concurrent connections?

With at least 30 GiB RAM you can handle 1 million concurrent sockets.

How many connections can WebSockets handle?

The theoretical limit is 65k connections per IP address but the actual limit is often more like 20k, so we use multiple addresses to connect 20k to each (50 * 20k = 1 mil).

Can a WebSocket have multiple connections?

A server can open WebSocket connections with multiple clients—even multiple connections with the same client. It can then message one, some, or all of these clients. Practically, this means multiple people can connect to our chat app, and we can message some of them at a time.

How many WebSockets can Chrome handle?

Now Chrome allows 255 websocket connections.


1 Answers

Take a look at this: https://github.com/cloudmark/spring-websockets-performance-testing They use Tomcat 8 but i think there will not be a fundamental difference in performance.

like image 131
Ruslan Avatar answered Jan 03 '23 17:01

Ruslan