前言
我們有一個 ASP.NET Core 的系統,跑一跑就會有 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. 的錯誤。但是它的 Max Pool Size 已經設定到了 6,000 ,還是會噴錯。
那系統中一定有沒有關掉的 Connection 才會如此 …