Windows 并发 tcp/ip 连接的最大数量是多少?

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/413110/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-09 05:54:17  来源:igfitidea点击:

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

windowstcp

提问by Jader Dias

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

在 .NET 中,我已经成功尝试了以下配置:

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

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

使用 100 个并发 HttpWebRequest,他们几乎同时(不到一秒)回答。

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?

我想知道为什么有些人在某些论坛上写道Windows XP 和Windows Server 2008 将这个数字限制为15 或20。他们是对的?

采纳答案by Christopher Edwards

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.

这可能是因为人们将入站 SMB 连接数与 TCP/IP 连接数混淆了。SMB 用于文件共享和其他各种用途,在 Windows 客户端操作系统中限制为 10 个连接。

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

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

回答by Peter Stuer

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

Windows 的客户端版本对半开连接数有限制。

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

XP10限制是众所周知的,Vista根据版本还有其他限制(例如Home Basic有 限制,Ultimate有)。 您可以使用 Google 的“事件 ID 4226 补丁”来缓解这些限制。帖子Vista SP2的行为是通过注册表项配置225

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

如果有足够的资源,Windows Server可以处理数以万计的并发入站连接。

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 IIS6on WS03SP1 x64with 4GBRAM.

在看到笔者报告50.000+并发连接IIS6WS03SP1 x64使用4GBRAM。

回答by Robert Venables

There are connection limitations on uncompleted (new) connections. IIRC, this was rolled into a update a few years ago as an experiment to curtail the spread of certain types of malware. You can safely remove this limit:

对未完成(新)连接有连接限制。IIRC,几年前将其纳入更新中,作为减少某些类型恶意软件传播的实验。您可以安全地删除此限制:

http://technet.microsoft.com/en-us/magazine/2007.12.network.aspx

http://technet.microsoft.com/en-us/magazine/2007.12.network.aspx

回答by xyz

Does that low number you mention only apply to "half-open" connections? I don't know the specifics, but remember reading something about this.

您提到的那个低数字是否仅适用于“半开”连接?我不知道具体细节,但记得阅读一些关于此的内容。

Google Search

谷歌搜索