 |
|
| .NET DotNet Forum Index » ADO .NET Forum » Severed connections in SQL Server Connection Pool... |
|
Page 1 of 1 |
|
| Author |
Message |
| Smokey Grindel... |
Posted: Thu Sep 17, 2009 6:48 am |
|
|
|
Guest
|
I am having problems with connections being severed that are waiting idle in
my connection pool... right now I have the pool min size at zero and the max
size at 100 (the defaults) pooling is of course enabled. I am connecting to
a SQL Server 2008 Standard edition server, but we have been seeing some
network issues, which has brought this problem to our attention... On
average I have about 20 connections "pooled" but then network hiccups cause
them to be severed so the pool thinks it still has a connection, but the
server thinks the connection is gone... when the next SQL Command runs it
goes and retrieves a connection from the pool that was severed, upon trying
to execute the command it comes back with the remote host forcibly
terminated the connection (of course, because the pool's connection was
severed, so no active connection exists now) how can I deal with this
problem? is there anyway to prevent this? or do I have to implement a retry
functionality to look for the next available connection that is open and not
severed in the pool? thanks! |
|
|
| Back to top |
|
|
|
| Paul... |
Posted: Tue Sep 29, 2009 9:00 am |
|
|
|
Guest
|
There is some code somewhere on the web that reverts to a non pooled
connection when max connections is reached you probably want to implement
this into your exception strategy.
However this is obviously not a fix just a workaround as the problem is
obviously with your network.
"Smokey Grindel" <nospam at (no spam) nospam.com> wrote in message
news:62CC2492-F15C-4CFB-BEB8-CC456B14B40E at (no spam) microsoft.com...
Quote: I am having problems with connections being severed that are waiting idle
in my connection pool... right now I have the pool min size at zero and the
max size at 100 (the defaults) pooling is of course enabled. I am
connecting to a SQL Server 2008 Standard edition server, but we have been
seeing some network issues, which has brought this problem to our
attention... On average I have about 20 connections "pooled" but then
network hiccups cause them to be severed so the pool thinks it still has a
connection, but the server thinks the connection is gone... when the next
SQL Command runs it goes and retrieves a connection from the pool that was
severed, upon trying to execute the command it comes back with the remote
host forcibly terminated the connection (of course, because the pool's
connection was severed, so no active connection exists now) how can I deal
with this problem? is there anyway to prevent this? or do I have to
implement a retry functionality to look for the next available connection
that is open and not severed in the pool? thanks! |
|
|
| Back to top |
|
|
|
|
|
All times are GMT - 5 Hours
The time now is Sat Dec 12, 2009 12:59 am
|
|