Solved

max pool size was reached?

Posted on 2008-06-21
3
1,469 Views
Last Modified: 2008-06-28
I'm using MySQL 5.051a for Windows and running a .NET winapp that uses approx 102 threads according to MySQL Administrator -> User Connections....

The winapp works fine for approx 1 minute then errors:

"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 checked the winapp C# .NET code to make sure all connections close after execution.

I have installed MySQL 5.051a with all default setting intact.

I'm sure all MySQL syntax is correct as well.

I've never had this sort of error running our winapp in MSSQL Server with MSSQL syntax..

Any suggestions???


0
Comment
Question by:kvnsdr
  • 2
3 Comments
 
LVL 24

Accepted Solution

by:
mankowitz earned 500 total points
ID: 21840564
First and formeost, you have to make sure that your application really needs 100 connections to the DB. That is an awful lot. It sounds to me like the connections are not being closed. Look closely at your app to make sure that you are closing or disposing of all the connections. Setting them to null doesn't close them until the garbage collecter runs.

If your app logic really needs 100 connections, you can increase the number of max connections or increase the timeout. Are you using the mysql .net native connector or odbc?
0
 
LVL 1

Author Comment

by:kvnsdr
ID: 21892836
Your correct, I had some SqlDatareader's not closing....
0
 
LVL 1

Author Comment

by:kvnsdr
ID: 21892840
It seems though MSSQL is more forgiving becasuse the program never failed until using MySQL.
0

Featured Post

Ransomware: The New Cyber Threat & How to Stop It

This infographic explains ransomware, type of malware that blocks access to your files or your systems and holds them hostage until a ransom is paid. It also examines the different types of ransomware and explains what you can do to thwart this sinister online threat.  

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

As a database administrator, you may need to audit your table(s) to determine whether the data types are optimal for your real-world data needs.  This Article is intended to be a resource for such a task. Preface The other day, I was involved …
Foreword This is an old article.  Instead of using the MySQL extension that was used in the original code examples, please choose one of the currently supported database extensions instead.  More information is available here: MySQLi / PDO (http://…
In a recent question (https://www.experts-exchange.com/questions/28997919/Pagination-in-Adobe-Acrobat.html) here at Experts Exchange, a member asked how to add page numbers to a PDF file using Adobe Acrobat XI Pro. This short video Micro Tutorial sh…
With Secure Portal Encryption, the recipient is sent a link to their email address directing them to the email laundry delivery page. From there, the recipient will be required to enter a user name and password to enter the page. Once the recipient …

810 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question