473,503 Members | 2,165 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Timeout expired. Connection pooling

LRK
I am in the process of moving an ASP.NET app from my development machine to a
web server. I am getting the following error message:

Message: "Timeout expired. 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."

Is this indicative of a coding problem or perhaps a setting on the server?

Help is appriciated

LRK
May 8 '06 #1
3 1990
"LRK" <LR*@discussions.microsoft.com> wrote in message
news:5B**********************************@microsof t.com...
I am in the process of moving an ASP.NET app from my development machine to
a
web server. I am getting the following error message:

Message: "Timeout expired. 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."

Is this indicative of a coding problem or perhaps a setting on the server?


It depends on what connection type you're using. Can you be more specific
about connection type your creating, is it database connection? Or is it
some other type of connection?

--
Regards, Vadym Stetsyak
www: http://vadmyst.blogspot.com
May 8 '06 #2
Ok, See when you are using connection pooling feature in your web
application, the application maintains the pool of db connections. Now lets
suppose new connection is requested it is given from the connection pool, if
all connections in pool are in open state then one new connection is created
and return it to your application and added to pool. But if your connection
pool is full then application will wait for the any of connections in pool to
get free, it seems that your pool is full and no connection is releasing.
Check it thoroughly, as some thing is screwedup in ur code .. either you are
not closing datareader after reading data or not doing connection.close()

"Vadym Stetsyak" wrote:
"LRK" <LR*@discussions.microsoft.com> wrote in message
news:5B**********************************@microsof t.com...
I am in the process of moving an ASP.NET app from my development machine to
a
web server. I am getting the following error message:

Message: "Timeout expired. 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."

Is this indicative of a coding problem or perhaps a setting on the server?


It depends on what connection type you're using. Can you be more specific
about connection type your creating, is it database connection? Or is it
some other type of connection?

--
Regards, Vadym Stetsyak
www: http://vadmyst.blogspot.com

May 10 '06 #3
Most likely a coding problem.

Normally when creating web pages a database connection will be open for
a split second. That means that each connection in the pool can be used
to create several web pages per second. The default size of the
connection pool for SqlConnection, for instance, is 100. That means that
there are connections enough to create thousands of pages per second.
The default timeout for SqlConnection is 15 seconds, which means that
there would have to be several thousands of requests queued up in order
to exhaust the connection pool under normal circumstances.

Use the Dispose method on all database connections (this will also close
the connection). You have to close any DataReader you use, or it will
keep the connection object active.

LRK wrote:
I am in the process of moving an ASP.NET app from my development machine to a
web server. I am getting the following error message:

Message: "Timeout expired. 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."

Is this indicative of a coding problem or perhaps a setting on the server?

Help is appriciated

LRK

May 10 '06 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

5
5693
by: Martin | last post by:
Dear Group Sorry for posting this here. I'm desperate for a solution to this problem and thought some of you might have come across it with .NET and SQL Server. Let's assume I've the following...
3
11082
by: Kamalanathan T. | last post by:
Hi, We have developed an Web application in ASP.NET with C# and we r using SQL Server 2000. We get the Timeout expired error, when more than 300 concurrent users hit the site. I hagone thru...
5
13256
by: Jason | last post by:
Hi all I get the following error when executing a rather intense stored procedure from an ASPX page. I have tried: - Increasing timeouts on IIS 5.0 (all areas that even mention timeout) - use...
2
4560
by: Chris Langston | last post by:
I have a Web Server running IIS 5 or 6 on Windows 2K and Windows 2003 Server that is experiencing strange shutdown problems. We are using ASP.NET v1.1 and our application is written in VB.NET ...
1
1159
by: Vam$y | last post by:
Hi Iam working on asp.net web application and my web server is running on win2k and data base is MS SQL 2000. Iam getting the below are error very frequently. "Timeout expired. The timeout...
5
2092
by: mapexvenus | last post by:
I have a .NET application that uses SQL server. After some useage I get the following error: "Timeout expired. The timeout period elapsed prior to obtaining a connection from the pool. This may...
3
452
by: DougS | last post by:
We have an ASP.Net (framework 1.1) app that does a lot of database reads and updates. The app has a dozen pages and we're about 90% done and all of a sudden I'm getting this error: Timeout...
2
1849
by: =?Utf-8?B?Y2FzaGRlc2ttYWM=?= | last post by:
Hi, I have recieved the following error in an application: "Timeout expired. The timeout period elapsed prior to obtaining a connection from the pool. This may have occured because all...
3
3082
by: =?Utf-8?B?QXho?= | last post by:
Is there a limitation on the number of (sequential) opened connection for SQL Server User Instances? The following method will run to about the 240th iteration then will receive a timeout...
0
7205
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7287
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
7353
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
7011
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
7468
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
5596
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
1521
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
747
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
401
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.