Connection Pooling Issues

I've been getting an error that goes something like 'Cannot obtain a connection from the pool, maximum pool size has been reached' I had been using a max pool size of 300, and now i've increased to 10,000. Is this the right thing to do Is there a limit to the pool size that i can set So far i haven't had that error, but I would like to know if there is a better way to handle the issue

Thanks

Emeka Awagu



Answer this question

Connection Pooling Issues

  • James Mayer

    Note this error is quite common and it indicates that somewhere in your code you are not closing a connection. Finding out where is the tricky part!

  • Keith Newton

    Yes i believe my application is closing the connection - all my data access codes are enclosed within a try..catch..finally block. and i always close the connection in the finally block.

    I'm working with Microsoft SQL Server 2000

    Thank you.


  • IntMain


    Is your application explicitly closing the connection when it has finished using it What type of database are you working with

  • Connection Pooling Issues