Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 SQL Server 2005 Forums
 SQL Server Administration (2005)
 Error: 10054

Author  Topic 

coolerbob
Aged Yak Warrior

841 Posts

Posted - 2007-05-17 : 05:06:38
In the past week, 3 times I have had our webserver get this error virtually non-stop for several hours at a time.

I think it's due to what it says here http://msdn2.microsoft.com/en-us/library/ms189083.aspx

Connections May Be Forcibly Closed When Running on Windows Server 2003 SP1

When testing scalability with a large number of client connection attempts to an instance of the SQL Server Database Engine running on Windows Server 2003 Service Pack 1, Windows may drop connections if the requests arrive faster than SQL Server can service them. This is a security feature of Windows Server 2003 Service Pack 1, which implements a finite queue for incoming TCP connection requests. It results in the following error:

ProviderNum: 7, Error: 10054, ErrorMessage: "TCP Provider: An existing connection was forcibly closed by the remote host ...

To resolve this issue, use the regedit.exe utility to add the following registry key:

Key Type Name Value
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Tcpip\Parameters DWORD
SynAttackProtect
00000000


Security Note:
Setting this registry key may expose the server to a SYN flood, denial-of-service attack. Add this registry value only if necessary and with an understanding of the security risks. Remove this registry value when testing is complete.



Twice I had this problem after restarting the database server. Could it be that the requests are somehow getting queued and then when the database server comes back up, it gets hit too hard? So then it goes into "protect my ass" mode?
How do you test where these connection requests are coming from?
I don't really want to disable this security setting...

rmiao
Master Smack Fu Yak Hacker

7266 Posts

Posted - 2007-05-17 : 09:52:33
If you have lot of concurrent connections, may need increase max worker threads with sp_configure.
Go to Top of Page
   

- Advertisement -