我在蔚藍的數據庫已經非標準S2 edition.In我的應用程序的日誌,我總是看到許多例外這樣的格式:Azure的SQL數據庫相關的異常
1.
System.Data.SqlClient.SqlException: The client was unable to establish a connection because of an error during connection initialization process before login. Possible causes include the following: the client tried to connect to an unsupported version of SQL Server; the server was too busy to accept new connections; or there was a resource limitation (insufficient memory or maximum allowed connections) on the server. (provider: TCP Provider, error: 0 - An existing connection was forcibly closed by the remote host.) ---> System.ComponentModel.Win32Exception: An existing connection was forcibly closed by the remote host
2.
System.Data.Entity.Core.EntityException: The underlying provider failed on Open. ---> 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
System.Data.SqlClient.SqlException (0x80131904): The client was unable to establish a connection because of an error during connection initialization process before login. Possible causes include the following: the client tried to connect to an unsupported version of SQL Server; the server was too busy to accept new connections; or there was a resource limitation (insufficient memory or maximum allowed connections) on the server. (provider: TCP Provider, error: 0 - An existing connection was forcibly closed by the remote host.) ---> System.ComponentModel.Win32Exception (0x80004005): An existing connection was forcibly closed by the remote host.
我使用SqlAzureExecutionStrategy,因此在重試一些次數後引發這些異常。
我在azure portla上看到不同的性能指標,但看起來他們沒問題。
如何識別問題?
'我如何識別問題?'用Azure SQL DB打開支持案例。 –
您的AzureSQL數據庫與您的應用程序代碼位於相同的Azure區域中嗎?您是否直接通過Internet連接到Azure SQL數據庫(例如,從桌面客戶端軟件?)。 – Dai
還在azure查看你的活動日誌表瞭解更多詳情 – TheGameiswar