?
Solved

max pool size was reached?

Posted on 2008-06-21
3
Medium Priority
?
1,473 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 24

Accepted Solution

by:
mankowitz earned 2000 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

Back Up Your Microsoft Windows Server®

Back up all your Microsoft Windows Server – on-premises, in remote locations, in private and hybrid clouds. Your entire Windows Server will be backed up in one easy step with patented, block-level disk imaging. We achieve RTOs (recovery time objectives) as low as 15 seconds.

Question has a verified solution.

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

Introduction This article is intended for those who are new to PHP error handling (https://www.experts-exchange.com/articles/11769/And-by-the-way-I-am-New-to-PHP.html).  It addresses one of the most common problems that plague beginning PHP develop…
Backups and Disaster RecoveryIn this post, we’ll look at strategies for backups and disaster recovery.
In this video, Percona Solution Engineer Dimitri Vanoverbeke discusses why you want to use at least three nodes in a database cluster. To discuss how Percona Consulting can help with your design and architecture needs for your database and infras…
In this video, Percona Solutions Engineer Barrett Chambers discusses some of the basic syntax differences between MySQL and MongoDB. To learn more check out our webinar on MongoDB administration for MySQL DBA: https://www.percona.com/resources/we…
Suggested Courses
Course of the Month11 days, 11 hours left to enroll

752 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