Tuesday 13 October 2015

Simultaneous TCP connection limitations of Virtual Private Server ( VPS )

Thinking that one VPS machine can handle more than 100k concurrent users, I have configured nginx web server to handle quite a large number of concurrent users and adjusted glassfish web instance max connection, thread pools and acceptor threads to a large and optimized values.
I tested this setup with quite a large number of users but it was not going beyond 3k users concurrently. Finally I came across the network tcp connection limitations of vps server and restrictions made by the hosting providers. In order to make these many number of concurrent users even one dedicated machine is not enough. We need to have a cloud setup.

I don't believe that even a good dedicated server can handle 100k TCP requests
simultaneously. Your vServer is limited by the user_beancounters. You can
check these with

cat /proc/user_beancounters

The numtcpsock parameter will show you how many TCP connections can be handled in parallel.

1 comment:

  1. This is interesting news article. We the https://www.websitemonitoring.com.au/........in Australia also the web server provider.

    ReplyDelete