简体   繁体   English

SQL连接池超时设置和SQL Server远程查询设置

[英]SQL Connection Pool timeout setting and SQL Server remote query setting

ASP.Net ConnectionStrings have persistent pooling on by default, and SQL Server default has a 600 second Remote query timeout. ASP.Net ConnectionStrings默认情况下具有持久池,而SQL Server默认情况下具有600秒的远程查询超时。 I assume that for a pooling at works each pooling connection would stay open for a long time. 我假设对于工作中的池,每个池连接都将保持打开状态很长时间。

Does the 600 second default setting affect the use of connection pooling? 600秒的默认设置会影响连接池的使用吗? Such that a random connection timeout error would occur from time to time? 这样随机连接超时错误会不时发生吗? or it works with pool seamlessly. 或与游泳池无缝配合。 Should I change max remote query timeout to 0 (infinite) instead? 我应该将最大远程查询超时更改为0(无限)吗?

Thanks 谢谢

Of course the timeout affects pooling. 当然,超时会影响池化。 If you have long running database queries that stay open for 600 seconds, and new requests are comming in, changes are that the connection pool is running out of connections. 如果长时间运行的数据库查询保持打开状态600秒钟,并且有新的请求传入,则更改为连接池用尽了连接。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM