2010-11-27 60 views
3

我開發了一個SMS服務器,它接收SMS,分析它們並回復消息。此應用程序使用實體框架4.0和SQLServer 2008開發。與服務器建立了連接,但在登錄前的握手/登錄過程中發生錯誤

當我收到SMS時,我爲該消息運行新線程並分析和響應消息。每個線程都有自己的對象上下文的新實例,並且所有線程都調用SQL Server中的相同存儲過程。

但是,當大量的短信抵達服務器的線程數量增加,我每次拿到這2個錯誤之一:

The underlying provider failed on Open. A connection was successfully established with the server, but then an error occurred during the pre-login handshake. (Provider: TCP Provider, error: 0 - The specified network name is no longer available.)

OR

The underlying provider failed on Open. A connection was successfully established with the server, but then an error occurred during the login process. (Provider: TCP Provider, error: 0 - The specified network name is no longer available.)

我增加最大池大小和連接超時到400和150. 任何人都可以幫助我? Thanx

+0

你解決了這個問題,我有同樣的問題。 – 2013-08-13 17:54:10

回答

1

可能是因爲某些連接仍然得到使用。試着這樣做:
sp_configure 'user connections', 0 go reconfigure with override

另外,請檢查您的服務器性能,Connections section,你的參數:Maximum number of concurrent connections設置爲0(無限制)。

相關問題