Link to home
Create AccountLog in
Microsoft SQL Server 2008

Microsoft SQL Server 2008

--

Questions

--

Followers

Top Experts

Avatar of jsimonuchc
jsimonuchc🇺🇸

Max pool size was reached.
All,

I am receiving the following error message on one of my applications. "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 numerous posts that suggests I alter my ASP code or change my connection string, but the application I working with is an app that we purchased and I cannot change the code of the app. Is there anything I can do from the SQL Server side or in IIS? Thanks!

Zero AI Policy

We believe in human intelligence. Our moderation policy strictly prohibits the use of LLM content in our Q&A threads.


Avatar of lcohanlcohan🇨🇦

This is not about changing the ASP code but app pool max settings on your website application/connection pooling.

Avatar of tigin44tigin44🇹🇷

query timeout can be effected by the "query wait (s)" setting of the sql sever... to set it to endless value run the script below.

sp_configure 'show advanced options', 1
reconfigure

sp_configure 'query wait (s)', -1
reconfigure

sp_configure 'show advanced options', 0
reconfigure




      

Avatar of jsimonuchcjsimonuchc🇺🇸

ASKER

I can't see anywhere in the application settings to change the pool settings.

Tigin44: What other effects will this change have?

Reward 1Reward 2Reward 3Reward 4Reward 5Reward 6

EARN REWARDS FOR ASKING, ANSWERING, AND MORE.

Earn free swag for participating on the platform.


Avatar of tigin44tigin44🇹🇷

you should run the above scripts against the server



Avatar of jsimonuchcjsimonuchc🇺🇸

ASKER

What other effects will running that script have on my application?

Avatar of tigin44tigin44🇹🇷

its probably that "query wait (s)" running value is set to -1 meaning queirws will run till they complete...
you can check the detailed information from books online about sp_configure......

Free T-shirt

Get a FREE t-shirt when you ask your first question.

We believe in human intelligence. Our moderation policy strictly prohibits the use of LLM content in our Q&A threads.


Avatar of lcohanlcohan🇨🇦

Connection Pooling for the .NET Framework Data Provider for SQL Server
http://msdn.microsoft.com/en-us/library/8xx3tyca(VS.71).aspx

Using Connection Pooling with SQL Server
http://msdn.microsoft.com/en-us/library/8xx3tyca(VS.80).aspx

you set the values in your config files/connection string for the Max Pool Size

or maybe you were hit by the bug below:
http://support.microsoft.com/kb/948868/en-us

or maybe you only need to close your data reader before close connection

Avatar of Anthony PerkinsAnthony Perkins🇺🇸

>>What other effects will running that script have on my application? <<
It will have no effect on your application.  A timeout is a client setting and has nothing to do with the server.

Avatar of lcohanlcohan🇨🇦

I would debate that as by letting the query to wait indefinitely could seriously impact the server and implicitly the APP (sorry to say it) on poorly written SQL code. Please see note below from Microsoft and consider twice before changing it. I would rather decrease it instead of making unlimited and if you have a APP performance issues there are many other ways to detect/deal with it.

http://msdn.microsoft.com/en-us/library/ms189539.aspx

"A transaction that contains the waiting query may hold locks while the query waits for memory. In rare situations, it is possible for an undetectable deadlock to occur. Decreasing the query wait time lowers the probability of such deadlocks. Eventually, a waiting query will be terminated and the transaction locks released. However, increasing the maximum wait time may increase the amount of time for the query to be terminated. Changes to this option are not recommended."

 

Reward 1Reward 2Reward 3Reward 4Reward 5Reward 6

EARN REWARDS FOR ASKING, ANSWERING, AND MORE.

Earn free swag for participating on the platform.


Avatar of jsimonuchcjsimonuchc🇺🇸

ASKER

lcohan: As I mentioned, I cannot make any changes to the application code, but I will look at the hotfix issue you describe

Avatar of jsimonuchcjsimonuchc🇺🇸

ASKER

It looks like Windows Server 2008 R2 has that hotfix included in it.

ASKER CERTIFIED SOLUTION
Avatar of Anthony PerkinsAnthony Perkins🇺🇸

Link to home
membership
Log in or create a free account to see answer.
Signing up is free and takes 30 seconds. No credit card required.
Create Account

Avatar of jsimonuchcjsimonuchc🇺🇸

ASKER

That's what I was afraid of. I'll keep this thread open for another day or so and see if there are any other ideas, and the I'll close it.

Free T-shirt

Get a FREE t-shirt when you ask your first question.

We believe in human intelligence. Our moderation policy strictly prohibits the use of LLM content in our Q&A threads.


Avatar of jsimonuchcjsimonuchc🇺🇸

ASKER

I have a ticket in with the vendor. They have acknowldeged the problem and are working on it.
Microsoft SQL Server 2008

Microsoft SQL Server 2008

--

Questions

--

Followers

Top Experts

Microsoft SQL Server 2008 is a suite of relational database management system (RDBMS) products providing multi-user database access functionality.Component services include integration (SSIS), reporting (SSRS), analysis (SSAS), data quality, master data, T-SQL and performance tuning. Major improvements include the Always On technologies and support for unstructured data types.