Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Which is the maximum number of Windows concurrent tcp/ip connections?

Tags:

windows

tcp

In .NET I have already tried the configuration below successfully:

  <system.net>
    <connectionManagement>
      <add address="*" maxconnection="100"/>
    </connectionManagement>
  </system.net>

Using 100 concurrent HttpWebRequest they answered almost simultaneously (less than a second).

I wonder why some people wrote in some forums that Windows XP and Windows Server 2008 limits this number to 15 or 20. They are right?

like image 398
Jader Dias Avatar asked Jan 05 '09 13:01

Jader Dias


2 Answers

The client versions of Windows are restricted in the number of half-open connections.

The 10 limit for XP is well known, Vista has other limits depending on the version (e.g. Home Basic has a limit of 2, Ultimate has 25).
You can Google "Patch for Event ID 4226" to alleviate these limits. Post Vista SP2 the behavior is configurable through a registry key.

Windows Server can handle several tens of thousands of concurrent inbound connections given enough resources.

Depending on your server version, you have to change some default parameters to allow these many connections to see this guide.

The author reports having seen 50.000+ concurrent connections to IIS6 on WS03SP1 x64 with 4GB RAM.

like image 127
Peter Stuer Avatar answered Oct 14 '22 07:10

Peter Stuer


It could be because people are confusing the number of inbound SMB connections with the number of TCP/IP connections. SMB is used for file sharing and various other things and is limited to 10 connections in Windows Client OSes.

http://support.microsoft.com/kb/328459

like image 26
Christopher Edwards Avatar answered Oct 14 '22 06:10

Christopher Edwards