Solved

max pool size was reached?

Posted on 2008-06-21
3
1,467 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

VMware Disaster Recovery and Data Protection

In this expert guide, you’ll learn about the components of a Modern Data Center. You will use cases for the value-added capabilities of Veeam®, including combining backup and replication for VMware disaster recovery and using replication for data center migration.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
PHP get months from date search query where user 40 61
Connect MySql database to wordpress site 3 54
PHP loop not working 4 55
simple mysql statement 3 32
A lot of articles have been written on splitting mysqldump and grabbing the required tables. A long while back, when Shlomi (http://code.openark.org/blog/mysql/on-restoring-a-single-table-from-mysqldump) had suggested a “sed” way, I actually shell …
All XML, All the Time; More Fun MySQL Tidbits – Dynamically Generate XML via Stored Procedure in MySQL Extensible Markup Language (XML) and database systems, a marriage we are seeing more and more of.  So the topics of parsing and manipulating XM…
This Micro Tutorial hows how you can integrate  Mac OSX to a Windows Active Directory Domain. Apple has made it easy to allow users to bind their macs to a windows domain with relative ease. The following video show how to bind OSX Mavericks to …
Many functions in Excel can make decisions. The most simple of these is the IF function: it returns a value depending on whether a condition you describe is true or false. Once you get the hang of using the IF function, you will find it easier to us…

920 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

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now