You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Saurav Sarkar <sa...@gmail.com> on 2024/02/05 17:07:22 UTC

Web socket connections scalability

Hi All,

We are on Tomcat 9.0.44 . I understand NIO HTTP connector is used by
default in Tomcat.

We are planning to enable web socket communication. I would like to
understand how many parallel web socket connections can be opened ?

I understand that there is no default maxConnections value but actual
connection counts in this case depend on the OS and environment where the
server is running.

Did some one perform any load testing on the number of web socket
connections that can be achieved with the above configuration ?

Best Regards,
Saurav

Re: Web socket connections scalability

Posted by Christopher Schultz <ch...@christopherschultz.net>.
Saurav,

On 2/5/24 12:07, Saurav Sarkar wrote:
> We are on Tomcat 9.0.44 . I understand NIO HTTP connector is used by
> default in Tomcat.
> 
> We are planning to enable web socket communication. I would like to
> understand how many parallel web socket connections can be opened ?

A lot.

> I understand that there is no default maxConnections value but actual
> connection counts in this case depend on the OS and environment where the
> server is running.
> 
> Did some one perform any load testing on the number of web socket
> connections that can be achieved with the above configuration ?

Any load-testing anyone could perform would be highly dependent upon 
their hardware, network, and client, and thus would not be relevant to you.

Tomcat is unlikely to be the bottleneck for your application if you are 
choosing to use WebSockets. It's much more likely that your application 
or hardware will be the bottleneck.

-chris

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org