Connection Pooling: Herve Roggero
Connection Pooling: Herve Roggero
Herve Roggero
http://www.herveroggero.com
[email protected]
Topics Covered
(*) Connection strings must match exactly for connection pooling to work properly
Connections and Connection Pools
Connection A3
Connection A2
Connection A1 Connection B1
ADO.NET
Objectives are to release connections quickly & minimize the number of connection pools
Viewing Connection Pools
SQL Trace
Audit:Login and RPC_Completed (sp_reset_connection)
Performance Counters (using perfmon.exe)
.NET Data Provider for Sql Server
.NET Data Provider for Oracle
Important Counters
HardConnectsPerSecond (physical database connections)
NumberOfActiveConnectionPools (*) (number of connection pools)
NumberOfFreeConnections (*) (available connections in the pools)
SoftConnectsPerSecond (*) (connections leveraging connection pooling)
(*) These counters are off by default; they must be activated in the application config file
Summary