Too many issues, lets take them one at a time:
Performance monitor: this accumulates, there is a kb available on this
somewhere and it is not our fault, unfortunately this makes this feature
very unreliable.
Min Pool Size, The first time you open a connection we will open the 1
connection and return, on a background thread we will start to open
connections on the server until Min pool size is reached, Min Pool Size is
guaranteed from that point on.
Is the pool created forever? the "pool" is created per Process per
Appdomain, if the process or appdomain where the pool resides goes away so
does the pool. There is an extremely good article on how pooling works here:
http://www.sys-con.com/dotnet/article.cfm?id=483 I highly recommend reading
this article by Guy Smith-Ferrier.
Hope this helps
--
Angel Saenz-Badillos [MS] Managed Providers
This posting is provided "AS IS", with no warranties, and confers no
rights.Please do not send email directly to this alias.
This alias is for newsgroup purposes only.
Stefan Turalski (stic) said:
Hi,
I've read this paper on M$ sites, and first answer to Roberts question is
yes - there are objects created in advance,
but there is another question for which answer I also looked up some time
ago..
Is the pool created forever ?
That's means, if I create sqlConnection which one connection string. Then
use open(), close() and even kill the application this pool still will be
there ?
Time needed to make open connection at first time when I run my test
application is around 289ms, when I close connection and open it (before
restarting app.) it is around 0ms. Now when I restarted then I agein obtain
ca. 300ms - that's seems like this pool is dead.
But at Performence Monitor -> .NET CLR Data, counter Current # connection
pools - still is growing, no (as I asume) still be around 0 - if there
is
no
running app. or 1 if I run one (or x if I run X more)...
So where I'm wrong ? Pools are immortal, or sth like this ? ;-)
--
best regards
stic
U¿ytkownik "Teemu Keiski" <
[email protected]> napisa³ w wiadomo¶ci
Hi,
when the connection pool is created (one pool exists per unique connection
string used), the minimum count of connection objects, given in Min Pool
Size, are created and added to the pool.
More information about the connection pooling:
http://msdn.microsoft.com/library/d...nectionpoolingforsqlservernetdataprovider.asp
--
Teemu Keiski
MCP, Microsoft MVP (ASP.NET), AspInsiders member
ASP.NET Forum Moderator, AspAlliance Columnist
Hi.
I think I have basic questions here, but maybe I'm on the right group.
Suppose I set the MinPoolSize of a connection to 10. Then I open and
close the connection for the first time in my application. When I
close the connection, will ado.net creates 10 connections in advance?
Since the MinPoolSize says 10, does it mean that I will have 10
connections in my pool forever?
Thanks,
Robert Scheer