Active Azure Sql Connections are over the connection pool limit

后端 未结 3 569
盖世英雄少女心
盖世英雄少女心 2021-02-13 22:32

We fight the issue in production when once in a while our Azure SQL database performance significantly degrades. We know we have locks on one of the tables, but these locks are

3条回答
  •  天涯浪人
    2021-02-13 23:20

    The problem may related to "Pool fragmentation"

    Pool fragmentation is a common problem in many Web applications where the application can create a large number of pools that are not freed until the process exits. This leaves a large number of connections open and consuming memory, which results in poor performance.

    Pool Fragmentation Due to Integrated Security* Connections are pooled according to the connection string plus the user identity. Therefore, if you use Basic authentication or Windows Authentication on the Web site and an integrated security login, you get one pool per user. Although this improves the performance of subsequent database requests for a single user, that user cannot take advantage of connections made by other users. It also results in at least one connection per user to the database server. This is a side effect of a particular Web application architecture that developers must weigh against security and auditing requirements.

    Source : https://docs.microsoft.com/en-us/dotnet/framework/data/adonet/sql-server-connection-pooling

提交回复
热议问题