If I have two ASP.NET applications installed on the same machine, and both are using the same connection string to access SQL Server 2005. Are they share the same pool or use separated pools?
I need to be sure that how many connections would be connected to my database server. For example, the max. connection pool size is 100, if both Web app share the same pool, then there're may be maximum 100 connections to database. It they use separated pools, then connections may grow to 200.
Hi,
per documentation: "Connections are pooled per process, per application domain, per connection string and when using integrated security, per Windows identity."
Source:http://msdn2.microsoft.com/en-us/library/8xx3tyca.aspx (using Connection Pooling)
It means your application would have separate pools, since they are different applications and therefore have their own app domain.
Another thing is that maximum connection pool size is configurable (within connectionstring), 100 is the default maximum limit.
|||joteke:
per documentation: "Connections are pooled per process, per application domain, per connection string and when using integrated security, per Windows identity."
Source:http://msdn2.microsoft.com/en-us/library/8xx3tyca.aspx (using Connection Pooling)It means your application would have separate pools, since they are different applications and therefore have their own app domain.
What if my ASP.NET applications all use the same application pool? In this way, are they still have separate pools?
Thank you!
|||They don't because they have different appdomains. Every ASP.NEt application has its own AppDomain. Only connections in same application, using exactly same connection string, would use the same connection pool.|||Ok! Now I got it.
Thank your for your help :)
No comments:
Post a Comment