小编Ech*_*lon的帖子

跟踪未关闭的连接

我每隔几天就会在 IIS7 和 SQL 2008 服务器之间收到超时错误。我得到的错误信息是:

System.InvalidOperationException: Timeout expired. The timeout period elapsed prior to obtaining a connection from the pool. This may have occurred because all pooled connections were in use and max pool size was reached.
Run Code Online (Sandbox Code Playgroud)

有时这会自行解决,有时我需要手动重新启动 SQL Server。有什么办法可以追踪这个错误的原因。我 90% 确定它在没有我们的 ASP.NET webforms 应用程序的某个地方打开而不是关闭连接,但我无法确定原因。

sql-server-2008 c#

5
推荐指数
1
解决办法
3889
查看次数

标签 统计

c# ×1

sql-server-2008 ×1