首页新闻找找看学习计划

.NET Core 中从数据库连接池中获取连接超时问题

0
悬赏园豆:50 [待解决问题]

错误日志如下

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.
   at System.Data.Common.ADP.ExceptionWithStackTrace(Exception e)
--- End of stack trace from previous location where exception was thrown ---
   at Microsoft.EntityFrameworkCore.Storage.RelationalConnection.OpenDbConnectionAsync(Boolean errorsExpected, CancellationToken cancellationToken)

.NET Core 版本是 .NET Core 3.0.0-preview9-19423-09 。

System.Data.SqlClient 版本是 4.6 。

github 上相关 issue :Connections from the pool are not reused when using async methods in parallel

请问如何解决这个问题?

dudu的主页 dudu | 高人七级 | 园豆:41311
提问于:2019-09-26 15:23
< >
分享
清除回答草稿
   您需要登录以后才能回答,未注册用户请先注册