Timeout expired. The timeout period elapsed prior to completion of the operation or the server is not responding. The statement has been terminated

后端 未结 20 2501
臣服心动
臣服心动 2020-11-22 10:23

I have many users on my web site (20000-60000 per day), which is a download site for mobile files. I have remote access to my server (windows server 2008-R2).
I\'ve

20条回答
  •  北恋
    北恋 (楼主)
    2020-11-22 10:49

    We've had hard times on Timeout expired/max pool reached Sqlexception. As a workarround and to prevent restarting the server or the service we modify the MAX SERVER MEMORY variable in SQL Server (either through SQL Managment Studio or T-SQL):

    DECLARE @maxMem INT = 3000 --Max. memory for SQL Server instance in MB
    EXEC sp_configure 'show advanced options', 1
    RECONFIGURE
    

    This temporarily fixes the issue until it happens again. In our case we suspect that it has to do with connection leaks at app level.

提交回复
热议问题