Solved

max pool size was reached?

Posted on 2008-06-21
3
1,466 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
Comment Utility
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
Comment Utility
Your correct, I had some SqlDatareader's not closing....
0
 
LVL 1

Author Comment

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

Featured Post

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Introduction In this article, I will by showing a nice little trick for MySQL similar to that of my previous EE Article for SQLite (http://www.sqlite.org/), A SQLite Tidbit: Quick Numbers Table Generation (http://www.experts-exchange.com/A_3570.htm…
Both Easy and Powerful How easy is PHP? http://lmgtfy.com?q=how+easy+is+php (http://lmgtfy.com?q=how+easy+is+php)  Very easy.  It has been described as "a programming language even my grandmother can use." How powerful is PHP?  http://en.wikiped…
This video gives you a great overview about bandwidth monitoring with SNMP and WMI with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're looking for how to monitor bandwidth using netflow or packet s…
You have products, that come in variants and want to set different prices for them? Watch this micro tutorial that describes how to configure prices for Magento super attributes. Assigning simple products to configurable: We assigned simple products…

772 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

9 Experts available now in Live!

Get 1:1 Help Now