SQL Server连接的任何限制算? [英] any limit of SQL Server connection count?

查看:149
本文介绍了SQL Server连接的任何限制算?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用SQL Server 2008企业版+ C#+ ADO.Net +净3.5。我使用sp_who2或sys.dm_exec_connections找到活动连接数(让我知道如果我的方法找到活动连接数是错误的)。对于一些重型的数据库使用者应用程序,我可以找到,甚至活动连接数> 1000

I am using SQL Server 2008 Enterprise + C# + ADO.Net + .Net 3.5. I am using sp_who2 or sys.dm_exec_connections to find active connections numbers (let me know if my method to find active connection numbers are wrong). For some heavy database consumer application, I can find even active connection count > 1000.

我想知道是否有SQL Server的?

I am wondering whether there are any upper bound limitations of active connection numbers of SQL Server?

在此先感谢, 乔治

推荐答案

这是每个实例,而不是每个数据库的配置。您可以查看当前值 sys.configurations sp_configure的 。相关的选项是 用户连接

It is a per-instance, not per database, configuration. You can check the current value in sys.configurations and change it with sp_configure. The relevant option is user connections:

使用用户连接选项   指定的最大数量   同时用户连接允许   在Microsoft SQL Server。实际   允许的用户连接数   还依赖于SQL版本   服务器使用的是和的极限   您的应用程序或应用程序   硬件。 SQL Server允许的最大   32767用户连接。

Use the user connections option to specify the maximum number of simultaneous user connections allowed on Microsoft SQL Server. The actual number of user connections allowed also depends on the version of SQL Server you are using and the limits of your application or applications and hardware. SQL Server allows a maximum of 32,767 user connections.

1000的连接不是一个非常高的数字。在高端系统中的服务器可以在多个端口关联到NUMA 听节点和具有连接到每个节点的客户数以十万计。

1000 of connections is not an exceedingly high number. On high end systems the server can listen on multiple ports affinitized to NUMA nodes and have hundreds and thousands of clients connected to each node.

请注意该连接数是从请求的数目不同的,即得。连接正在执行的东西, sys.dm_exec_requests视图。每个请求需要一个或多个工人和工人的数量配置了 最大工作螺纹 选项。

Note that the number of connections is different from the number of requests, ie. connections actively executing something, sys.dm_exec_requests. Each Request requires one or more workers and the number of workers is configured with the max worker threads option.

这篇关于SQL Server连接的任何限制算?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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