Windows Server 2008上最大的TCP / IP连接 [英] Max tcp/ip connections on Windows Server 2008

查看:578
本文介绍了Windows Server 2008上最大的TCP / IP连接的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我的.Net服务,侦听单个端口的TCP协议。客户端连接,然后传送数据的一段时间(从几分钟到几个小时)。

I have .Net service that listens on single port over TCP protocol. Clients connect and then transmit data for some time (from few minutes to several hours).

是否有连接数的Windows 2008服务器上的任何限制?我没有打任何,因为现在有最多50个用户。计划是有成千上万的用户,所以我想知道是否有将在未来的问题。

Is there any limit on number of connections on Windows 2008 server? I did not hit any, since now there is up to 50 users. Plan is to have thousands of users, so I'd like to know if there will be problems in future.

编辑:
随着云回答,似乎有在某些版本的Windows Server 2008的某些限制是否有这些限制,任何参考?我试图谷歌,但它返回文章上限制在半绑定的TCP连接。


As Cloud answered, it seems that there are some limits in some versions of Windows Server 2008. Is there any reference on those limits? I tried Google, but it returns articles on limit on half-bound tcp connections.

推荐答案

如何用户成千上万?

我的Windows 2003 Server上运行某些TCP / IP的客户端/服务器连接在过去的测试和管理超过70,000连接在一个合理的低规格的虚拟机。 (在这里看到的细节:<一href="http://www.lenholgate.com/blog/2005/10/the-64000-connection-question.html">http://www.lenholgate.com/blog/2005/10/the-64000-connection-question.html).我将非常惊讶,如果Windows 2008的服务器被限制为小于2003服务器和,恕我直言,云指向不明确,很多使用过帐。这种问题来了很多,我在博客里关于为什么我不'吨真的认为这是东西,你应该真正担心的位置:<一href="http://www.serverframework.com/asynchronousevents/2010/12/one-million-tcp-connections.html">http://www.serverframework.com/asynchronousevents/2010/12/one-million-tcp-connections.html.

I've run some TCP/IP client/server connection tests in the past on Windows 2003 Server and managed more than 70,000 connections on a reasonably low spec VM. (see here for details: http://www.lenholgate.com/blog/2005/10/the-64000-connection-question.html). I would be extremely surprised if Windows 2008 Server is limited to less than 2003 Server and, IMHO, the posting that Cloud links to is too vague to be much use. This kind of question comes up a lot, I blogged about why I don't really think that it's something that you should actually worry about here: http://www.serverframework.com/asynchronousevents/2010/12/one-million-tcp-connections.html.

我个人想测试一下看看。即使是在您打算使用还会有基于内存,处理器速度和服务器设计的实际限制在Windows 2008 Server版本存在固有的限制。

Personally I'd test it and see. Even if there is no inherent limit in the Windows 2008 Server version that you intend to use there will still be practical limits based on memory, processor speed and server design.

如果你想运行一些通用的测试,你可以用我的多客户端的连接测试和相关的回声服务器。这里详细:<一href="http://www.lenholgate.com/blog/2005/11/windows-tcpip-server-performance.html">http://www.lenholgate.com/blog/2005/11/windows-tcpip-server-performance.html这里:<一href="http://www.lenholgate.com/blog/2005/11/simple-echo-servers.html">http://www.lenholgate.com/blog/2005/11/simple-echo-servers.html.这些是我用来运行自己的测试我的服务器框架,这些都是让我在Windows 2003 Server的虚拟机创建70000活动连接的内存760MB。

If you want to run some 'generic' tests you can use my multi-client connection test and the associated echo server. Detailed here: http://www.lenholgate.com/blog/2005/11/windows-tcpip-server-performance.html and here: http://www.lenholgate.com/blog/2005/11/simple-echo-servers.html. These are what I used to run my own tests for my server framework and these are what allowed me to create 70,000 active connections on a Windows 2003 Server VM with 760MB of memory.

编辑从下面的注释添加细节...

如果你已经想的多台服务器上我会采取以下方法。

If you're already thinking of multiple servers I'd take the following approach.

  1. 使用免费的工具,我联系 要证明自己,你 可以创建一个合理的数量 连接到您的目标OS (上提防Windows的限制 动态端口,可能会导致您 客户端连接失败,搜索 为 MAX_USER_PORT )。

  1. Use the free tools that I link to and prove to yourself that you can create a reasonable number of connections onto your target OS (beware of the Windows limits on dynamic ports which may cause your client connections to fail, search for MAX_USER_PORT).

定期检验测试实际的服务器 客户端可以创建连接 实际上做一些事情上 服务器。这将有助于prevent 你构建服务器的方式 限制了它的可扩展性。在这里看到:<一href="http://www.serverframework.com/asynchronousevents/2010/10/how-to-support-10000-or-more-concurrent-tcp-connections-part-2-perf-tests-from-day-0.html">http://www.serverframework.com/asynchronousevents/2010/10/how-to-support-10000-or-more-concurrent-tcp-connections-part-2-perf-tests-from-day-0.html

during development regularly test your actual server with test clients that can create connections and actually 'do something' on the server. This will help to prevent you building the server in ways that restrict its scalability. See here: http://www.serverframework.com/asynchronousevents/2010/10/how-to-support-10000-or-more-concurrent-tcp-connections-part-2-perf-tests-from-day-0.html

这篇关于Windows Server 2008上最大的TCP / IP连接的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆