Any*_*are 6 c# asp.net performance informix connection-pooling
我面临以下问题:
连接池已达到最大连接数
我遵循了所有的建议.问题不像以前那样很少发生!
我使用我的Using statement所有连接和读者.
最近我面临以下错误,我不得不重置iis以解决我的问题.
Connection Pool has reached the maximum number of connections. at IBM.Data.Informix.IfxConnectionPool.ReportOpenTimeOut()
at IBM.Data.Informix.IfxConnectionPool.Open(IfxConnection connection)
at IBM.Data.Informix.IfxConnPoolManager.Open(IfxConnection connection)
at IBM.Data.Informix.IfxConnection.Open()
at DB_Connection_s.DB_Connection.GetUserSystems(String emp_num)
Run Code Online (Sandbox Code Playgroud)
现在我读到了这个方法.ClearAllPools()但我不知道何时使用这种方法.如果这被认为是一个很好的解决方案,以防止have to重置iis修复请求超时问题?
当您没有任何活动连接时,您可以调用 ClearAllPools()。
另请查看http://www.codeproject.com/Articles/46267/Connection-Pooling-in-ASP-NET
确保您的应用程序正确且一致地关闭所有数据库连接。
确保数据库在线。
增加连接超时。
该错误模式表明连接在很长一段时间内“泄漏”。要解决此问题,请确保您的应用程序正确且一致地关闭所有数据库连接。
该异常并不表示数据库已脱机。该异常表明连接池有问题。
| 归档时间: |
|
| 查看次数: |
4682 次 |
| 最近记录: |