So, I am looking to increase the Max Pool Size. The problem is that I don't know what a "reasonable" increase would be. Right now I am not setting it, just using the default of 100. The following are my more specific questions:
Why is this number defaulted at 100, seems low. What are the negatives of significantly raising it to 1000 or something like that?
Is there a good way to determine what this Max Should be raised to?
What is the "scope" of the Connection Pool? Is this pool all connections to the database? Each "Machine/Server" connecting has is own Pool?
Background:
While my application is running we received the following error:
"Timeout expired. The timeout period elapsed prior to obtaining a connection from the pool. This may have occurred because all pooled connections were in use and max pool size was reached." I have read alot of other post with a similar problem, all of which discuss how I should do one of two things.
- Make sure I am closing all connections after opening them
- Increase the max pool size
I have an extremely large application, so the (1) is hard to determine if somewhere a connection is not being closed. I can't find one that is not.