Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

max pool size was reached?

Posted on 2008-06-21
3
Medium Priority
?
1,474 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

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Load balancing is the method of dividing the total amount of work performed by one computer between two or more computers. Its aim is to get more work done in the same amount of time, ensuring that all the users get served faster.
In this blog post, we’ll look at how using thread_statistics can cause high memory usage.
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 Solution Engineer Rick Golba discuss how (and why) you implement high availability in a database environment. To discuss how Percona Consulting can help with your design and architecture needs for your database and infrastr…
Suggested Courses

650 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