Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What's the maximum number of HTTP connections I can have open in one Windows Server 2008 box?

I have a web server hosting an HTTP chat application that works with long-polling.

This means a client browser "polls" for new info and the server does not respond until there is info to send back, so the HTTP connection is left open for a long time, up to a minute.

My question is how many of these connections the server can handle open at the same time before it dies.
Of course, there is no precise number, but I want to get a grasp, an order of magnitude (1,000 , 10,000, 100,000?)

Any insights related to this based on any experiences you may have had is more than welcome!

like image 844
Daniel Magliola Avatar asked Jul 30 '09 22:07

Daniel Magliola


2 Answers

I found this:

http://blogs.msdn.com/david.wang/archive/2006/04/12/HOWTO-Maximize-the-Number-of-Concurrent-Connections-to-IIS6.aspx

To give a sense of scope - I have seen 50K+ concurrent connections to IIS6 on WS03SP1 x64 with 4GB RAM

Anything else you can find?

like image 142
Daniel Magliola Avatar answered Sep 20 '22 11:09

Daniel Magliola


To be honest, in all but the most extreme of situations you will run out of resources for your application before you ever exceed the amount of supported connections. IIS can handle a crazy amount of pure network connections but it ultimately comes down to if your application can process data from them fast enough.

If you are really expecting to scale this to thousands of users at a time I would go ahead and build in your design to be able to scale out to multiple front-end servers. Most likely this would look like a load balancer or reverse proxy that balances these HTTP connections between front-end servers, with those front-end servers doing the processing and communicating with a central SQL DB or whatever your storage mechanism is.

Edit: One other note, regarding the single server scenario - regardless of how many connections IIS can handle, your firewall has its limits, too. Usually it's also a crazy amount but you'll need to look at your firewall too if you really want to find the ceiling.

like image 20
Brandon Avatar answered Sep 23 '22 11:09

Brandon