Home All Groups Group Topic Archive Search About

SQLConnection connection pool issue

Author
1 Apr 2005 3:53 PM
Rory Smith via .NET 247
I have a similar problem to several other people who have posted here - I can only open up to <Max Pool Size> connections.  After that I get a timeout expired exception.

Looking at the open / pooled connections in perfmon (in both SQL Server stats, and the CLR runtime), there are never more than 5 / 6 connections open, but without fail, I cannot open more than <Max Pool Size> connections, even when I change this value or don't specify it.

I have already tried several suggested solutions - disabling SQL Server debugging in VS.net, running in release mode, connecting to several other databases on several other computers, but nothing seems to have any effect.  I have gone through the code with a fine tooth-comb, and put "open connection" counters into my database class (all the connections are opened and closed by a single pair of shared functions - and yes, the connection object is passed by ref.), and ensured that the connections are actually reporting they are closed (via SqlConnection.State) both inside and outside the function that closes them.

I'm all out of ideas now.  Any suggestions would be greatly appreciated.

--------------------------------
From: Rory Smith

-----------------------
Posted by a user from .NET 247 (http://www.dotnet247.com/)

<Id>gdTZqEcYx0eoUbAQReEUNQ==</Id>

Author
5 Apr 2005 4:27 PM
Pablo Castro [MS]
Just to make sure I understand your scenario: you set max pool size to say
500, and you cannot open more than 500 connections? if that's the case,
that's intentional, we won't allow the application to open more connections
than the maximum set for the pool. If your issue is that you can open less
connections than the number you set there, then that's bad, and a call-stack
might help identify the problem.

--
Pablo Castro
Program Manager - ADO.NET Team
Microsoft Corp.

This posting is provided "AS IS" with no warranties, and confers no rights.


"Rory Smith via .NET 247" <anonym***@dotnet247.com> wrote in message
news:%23Y8JpLtNFHA.3512@TK2MSFTNGP15.phx.gbl...
I have a similar problem to several other people who have posted here - I
can only open up to <Max Pool Size> connections.  After that I get a timeout
expired exception.

Looking at the open / pooled connections in perfmon (in both SQL Server
stats, and the CLR runtime), there are never more than 5 / 6 connections
open, but without fail, I cannot open more than <Max Pool Size> connections,
even when I change this value or don't specify it.

I have already tried several suggested solutions - disabling SQL Server
debugging in VS.net, running in release mode, connecting to several other
databases on several other computers, but nothing seems to have any effect.
I have gone through the code with a fine tooth-comb, and put "open
connection" counters into my database class (all the connections are opened
and closed by a single pair of shared functions - and yes, the connection
object is passed by ref.), and ensured that the connections are actually
reporting they are closed (via SqlConnection.State) both inside and outside
the function that closes them.

I'm all out of ideas now.  Any suggestions would be greatly appreciated.

--------------------------------
From: Rory Smith

-----------------------
Posted by a user from .NET 247 (http://www.dotnet247.com/)

<Id>gdTZqEcYx0eoUbAQReEUNQ==</Id>
Author
6 Apr 2005 8:33 AM
Anton Sokolovsky
5 open connections is the limitation when you have MSDE version of SQL
Server.


"Rory Smith via .NET 247" <anonym***@dotnet247.com> wrote in message
news:%23Y8JpLtNFHA.3512@TK2MSFTNGP15.phx.gbl...
I have a similar problem to several other people who have posted here - I
can only open up to <Max Pool Size> connections.  After that I get a timeout
expired exception.

Looking at the open / pooled connections in perfmon (in both SQL Server
stats, and the CLR runtime), there are never more than 5 / 6 connections
open, but without fail, I cannot open more than <Max Pool Size> connections,
even when I change this value or don't specify it.

I have already tried several suggested solutions - disabling SQL Server
debugging in VS.net, running in release mode, connecting to several other
databases on several other computers, but nothing seems to have any effect.
I have gone through the code with a fine tooth-comb, and put "open
connection" counters into my database class (all the connections are opened
and closed by a single pair of shared functions - and yes, the connection
object is passed by ref.), and ensured that the connections are actually
reporting they are closed (via SqlConnection.State) both inside and outside
the function that closes them.

I'm all out of ideas now.  Any suggestions would be greatly appreciated.

--------------------------------
From: Rory Smith

-----------------------
Posted by a user from .NET 247 (http://www.dotnet247.com/)

<Id>gdTZqEcYx0eoUbAQReEUNQ==</Id>
Author
6 Apr 2005 11:37 PM
Greg Low [MVP]
No, the MSDE has the same open connection limits as SQL Server. Only
concurrent workloads are governed where there are more than 8 of them.

HTH,

--
Greg Low [MVP]
MSDE Manager SQL Tools
www.whitebearconsulting.com

Show quote
"Anton Sokolovsky" <anton.sokolov***@infopulse.com.ua> wrote in message
news:d306sq$964$1@relay.infopulse.com.ua...
>5 open connections is the limitation when you have MSDE version of SQL
> Server.
>
>
> "Rory Smith via .NET 247" <anonym***@dotnet247.com> wrote in message
> news:%23Y8JpLtNFHA.3512@TK2MSFTNGP15.phx.gbl...
> I have a similar problem to several other people who have posted here - I
> can only open up to <Max Pool Size> connections.  After that I get a
> timeout
> expired exception.
>
> Looking at the open / pooled connections in perfmon (in both SQL Server
> stats, and the CLR runtime), there are never more than 5 / 6 connections
> open, but without fail, I cannot open more than <Max Pool Size>
> connections,
> even when I change this value or don't specify it.
>
> I have already tried several suggested solutions - disabling SQL Server
> debugging in VS.net, running in release mode, connecting to several other
> databases on several other computers, but nothing seems to have any
> effect.
> I have gone through the code with a fine tooth-comb, and put "open
> connection" counters into my database class (all the connections are
> opened
> and closed by a single pair of shared functions - and yes, the connection
> object is passed by ref.), and ensured that the connections are actually
> reporting they are closed (via SqlConnection.State) both inside and
> outside
> the function that closes them.
>
> I'm all out of ideas now.  Any suggestions would be greatly appreciated.
>
> --------------------------------
> From: Rory Smith
>
> -----------------------
> Posted by a user from .NET 247 (http://www.dotnet247.com/)
>
> <Id>gdTZqEcYx0eoUbAQReEUNQ==</Id>
>
>

AddThis Social Bookmark Button