Name some problems that could occur with connection pooling

Technology CommunityCategory: ADO.NETName some problems that could occur with connection pooling
VietMX Staff asked 3 years ago

Pool fragmentation is a common problem in many Web applications where the application can create a large number of pools that are not freed until the process exits. This leaves a large number of connections open and consuming memory, which results in poor performance. Note that pool fragmentation might occur if you are using Integrated Security or even when your application is using too many connection pools.

In order to ensure that connection pooling works efficiently, you should ensure that you close the database connections when they are no longer needed. You should never call the Close or Dispose method on a Connection instance in the Finalize method. You should also close the transaction instances before the related connection objects are closed or disposed.