Re: How much should I need to Dispose() of

Tech-Archive recommends: Fix windows errors by optimizing your registry

From: David Browne (meat_at_hotmail.com)
Date: 06/09/04


Date: Wed, 9 Jun 2004 10:10:43 -0500


"William (Bill) Vaughn" <billvaRemoveThis@nwlink.com> wrote in message
news:e5YTzCdTEHA.556@tk2msftngp13.phx.gbl...
> Dispose won't help if the connection is orphaned or still in use.
> Connection pool timeouts are caused by one thing: the connection pool is
> full. Why does the pool fill when it gets to 100 connections when 5 should
> be enough for a healthy system? Generally, there's two reasons:
> 1) The connection was not done in time to be reused by the next
request.
> To compute this, divide the available bandwidth of the system (its
> processing power) by the demand. Suppose your ASP page takes 5 seconds to
> service a query. This means it can handle about 12 hits/minute per
> connection. If you have 120 hits/minute you're going to exhaust the
capacity
> of the system and your pool will overflow. The solution to this problem is
> either improve the hardware performance or decrease the length of time
each
> ASP takes to do its job.

In practice ASP will generally not allow that many simultaneous requests to
execute. The exact mechanism is obscure, but requests should start queuing
before you run out of connections. If this does happen, the solution is to
properly configure the ASP worker thread pool. If all your ASP pages
require DB access, you should never allow more ASP worker threads than
available connections.

David



Relevant Pages

  • Re: asp + mysql and simultaneous requests result in IIS 500 error
    ... > ASP pages send out simultaneous requests to another ASP page which in ... > ASP pages that put out requests to ASP pages which in turn try to ... > retrieve data from the MySQL database, I get a 500 error code. ... > caused by the DSNless connection? ...
    (microsoft.public.inetserver.asp.general)
  • RE: Connection pooling
    ... Connection Pooling with SQL Server 2000 Analysis Services ... the Microsoft XML for Analysis Provider to develop scalable client and Web ... applications for Microsoft SQL Server 2000 Analysis Services. ... Balancing and Shrinking the Connection Pool ...
    (microsoft.public.sqlserver.programming)
  • Re: SQL Compact Edition - Connection Pool --> Slow!
    ... Hitchhiker's Guide to Visual Studio and SQL Server ... and Hitchhiker's Guide to SQL Server 2005 Compact Edition (EBook) ... mind (--> get a connection, use it and release it as soon as possible ... about the connection pool for Compact Edition 3.1. ...
    (microsoft.public.sqlserver.ce)
  • Re: SQL Compact Edition - Connection Pool --> Slow!
    ... Hitchhiker's Guide to Visual Studio and SQL Server ... and Hitchhiker's Guide to SQL Server 2005 Compact Edition (EBook) ... mind (--> get a connection, use it and release it as soon as possible ... about the connection pool for Compact Edition 3.1. ...
    (microsoft.public.sqlserver.ce)
  • Re: ASP.NET SQL Processes
    ... Microsoft Online Support ... when we use the ADO.NET's connection ... | connection pool, when we create SqlConnections, the ADO.NET will retrieve ... | | SQL server doesn't keep any processes attached to the application. ...
    (microsoft.public.dotnet.framework.aspnet)