The timeout period elapsed prior to obtaining a connection from the pool

前端 未结 4 1142
醉梦人生
醉梦人生 2021-01-22 15:31

I\'m getting this error every few days. I won\'t see the error for a few days then I\'ll get a flurry of 20 or so all with in a minute or so.

I\'ve been very thorough go

4条回答
  •  余生分开走
    2021-01-22 16:16

    The issue is the number of pooled connections you can have in the pool.

    In your connection string, you can add the "Max Pool Size=100" attribute to increase the size of your pool. However it sounds like you are concurrently running a significant number of SQL queries, all of which are long running. Perhaps you should look at ways to either shorten the queries or run them sequentially through a single connection.

提交回复
热议问题