473,394 Members | 1,761 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,394 software developers and data experts.

The timeout period elapsed prior to obtaining a connection from th

Hello,

Please read this all before giving an answer :) I'm doing some
troubleshooting on a web application that my company wrote. It's written in
asp.net 1.1. The error that the Event viewer gives is:

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.

Now here's the weird part. We have a 11 servers running running this web
application at RackSpace, it's made up of 4x frontend servers running MS
Server 2003 Standard R2 x64bit SP2 that's being load balanced by a hardware
LB. The web application is running on .Net 1.1.4322.2407. Then there is 7x
backend boxes running MS Server 2003 Enterprise R2 x64bit SP2. We host
around 2,0000 customer DB's in this environment. All these servers are all
Dual Proc Dual core, 8GB of ram etc.

Now we have a customer that hosts their own environment. It's in a windows
domain environment and they have a single frontend box, and a single backend
box. Their frontend server is MS Server 2003 Standard x64 SP2, and the web
application is running on .Net 1.1.4322.2407 as well. Their backend server
is running on Windows Server 2003 Enterprise Edition SP2 32bit, with only 2GB
of RAM and only a single customer database. Their database is only around
6.3GB

Now the actual weird part is, they get that error and it basically takes
down the web application, and they're using the exact same code as us. We're
hosting tons more db's and a lot more users obviously. I've gone through and
looked at about everything I can think of and I still can't put my finger on
it. Our Dev's have gone through the code but they can't find any type of
connection leak. We're using the default Max Pool Size at both locations as
well.

So I'm wondering if anyone has any pointers on where else we should be
looking.

Mar 26 '08 #1
7 2725
Well, after all that typing you ommitted the critical piece of information.

A connection to what?
"John Staggs" <Jo********@discussions.microsoft.comwrote in message
news:A5**********************************@microsof t.com...
Hello,

Please read this all before giving an answer :) I'm doing some
troubleshooting on a web application that my company wrote. It's written
in
asp.net 1.1. The error that the Event viewer gives is:

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.

Now here's the weird part. We have a 11 servers running running this web
application at RackSpace, it's made up of 4x frontend servers running MS
Server 2003 Standard R2 x64bit SP2 that's being load balanced by a
hardware
LB. The web application is running on .Net 1.1.4322.2407. Then there is
7x
backend boxes running MS Server 2003 Enterprise R2 x64bit SP2. We host
around 2,0000 customer DB's in this environment. All these servers are
all
Dual Proc Dual core, 8GB of ram etc.

Now we have a customer that hosts their own environment. It's in a
windows
domain environment and they have a single frontend box, and a single
backend
box. Their frontend server is MS Server 2003 Standard x64 SP2, and the
web
application is running on .Net 1.1.4322.2407 as well. Their backend
server
is running on Windows Server 2003 Enterprise Edition SP2 32bit, with only
2GB
of RAM and only a single customer database. Their database is only around
6.3GB

Now the actual weird part is, they get that error and it basically takes
down the web application, and they're using the exact same code as us.
We're
hosting tons more db's and a lot more users obviously. I've gone through
and
looked at about everything I can think of and I still can't put my finger
on
it. Our Dev's have gone through the code but they can't find any type of
connection leak. We're using the default Max Pool Size at both locations
as
well.

So I'm wondering if anyone has any pointers on where else we should be
looking.
Mar 27 '08 #2
Hey Stephany,

I'm not sure I understand your question, but we're using ADO to hit the
backend, and here's the exact error we get.

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.
Other things I noticed today was we do around 3GB - 3.5GB in raw IIS logs
daily, while this hosted customer does 300mb. Their backend box while being
32bit still only has 2GB...so I was wondering if that could play any part.
We have 8GB of memory and we're running 64bit OS and MSSQL on our boxes.
"Stephany Young" wrote:
Well, after all that typing you ommitted the critical piece of information.

A connection to what?
"John Staggs" <Jo********@discussions.microsoft.comwrote in message
news:A5**********************************@microsof t.com...
Hello,

Please read this all before giving an answer :) I'm doing some
troubleshooting on a web application that my company wrote. It's written
in
asp.net 1.1. The error that the Event viewer gives is:

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.

Now here's the weird part. We have a 11 servers running running this web
application at RackSpace, it's made up of 4x frontend servers running MS
Server 2003 Standard R2 x64bit SP2 that's being load balanced by a
hardware
LB. The web application is running on .Net 1.1.4322.2407. Then there is
7x
backend boxes running MS Server 2003 Enterprise R2 x64bit SP2. We host
around 2,0000 customer DB's in this environment. All these servers are
all
Dual Proc Dual core, 8GB of ram etc.

Now we have a customer that hosts their own environment. It's in a
windows
domain environment and they have a single frontend box, and a single
backend
box. Their frontend server is MS Server 2003 Standard x64 SP2, and the
web
application is running on .Net 1.1.4322.2407 as well. Their backend
server
is running on Windows Server 2003 Enterprise Edition SP2 32bit, with only
2GB
of RAM and only a single customer database. Their database is only around
6.3GB

Now the actual weird part is, they get that error and it basically takes
down the web application, and they're using the exact same code as us.
We're
hosting tons more db's and a lot more users obviously. I've gone through
and
looked at about everything I can think of and I still can't put my finger
on
it. Our Dev's have gone through the code but they can't find any type of
connection leak. We're using the default Max Pool Size at both locations
as
well.

So I'm wondering if anyone has any pointers on where else we should be
looking.

Mar 27 '08 #3
OK. So the data access layer is ADO, but connecting to what?

Oracle?

MySql?

SQL Server?

What are thier current settings for connection pool size and connection
timeout.

Is this happening on every connection to the 'database' in the application
or just some?
"John Staggs" <Jo********@discussions.microsoft.comwrote in message
news:33**********************************@microsof t.com...
Hey Stephany,

I'm not sure I understand your question, but we're using ADO to hit the
backend, and here's the exact error we get.

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.
Other things I noticed today was we do around 3GB - 3.5GB in raw IIS logs
daily, while this hosted customer does 300mb. Their backend box while
being
32bit still only has 2GB...so I was wondering if that could play any part.
We have 8GB of memory and we're running 64bit OS and MSSQL on our boxes.
"Stephany Young" wrote:
>Well, after all that typing you ommitted the critical piece of
information.

A connection to what?
"John Staggs" <Jo********@discussions.microsoft.comwrote in message
news:A5**********************************@microso ft.com...
Hello,

Please read this all before giving an answer :) I'm doing some
troubleshooting on a web application that my company wrote. It's
written
in
asp.net 1.1. The error that the Event viewer gives is:

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.

Now here's the weird part. We have a 11 servers running running this
web
application at RackSpace, it's made up of 4x frontend servers running
MS
Server 2003 Standard R2 x64bit SP2 that's being load balanced by a
hardware
LB. The web application is running on .Net 1.1.4322.2407. Then there
is
7x
backend boxes running MS Server 2003 Enterprise R2 x64bit SP2. We host
around 2,0000 customer DB's in this environment. All these servers are
all
Dual Proc Dual core, 8GB of ram etc.

Now we have a customer that hosts their own environment. It's in a
windows
domain environment and they have a single frontend box, and a single
backend
box. Their frontend server is MS Server 2003 Standard x64 SP2, and the
web
application is running on .Net 1.1.4322.2407 as well. Their backend
server
is running on Windows Server 2003 Enterprise Edition SP2 32bit, with
only
2GB
of RAM and only a single customer database. Their database is only
around
6.3GB

Now the actual weird part is, they get that error and it basically
takes
down the web application, and they're using the exact same code as us.
We're
hosting tons more db's and a lot more users obviously. I've gone
through
and
looked at about everything I can think of and I still can't put my
finger
on
it. Our Dev's have gone through the code but they can't find any type
of
connection leak. We're using the default Max Pool Size at both
locations
as
well.

So I'm wondering if anyone has any pointers on where else we should be
looking.

Mar 27 '08 #4
Its near impossible to say with any certainty, although the most obvious
reason for this exception would be instances where connections to the DB are
not being closed and so released back into the pool.

Although the same code is being run, there may be a scenario where an
exception is being thrown on the customers system that isn't thrown on your
companies system.

Can you say with confidence that all connections are closed when finished
with, even in the event of an exception? i.e. are you using connections
either in a using block or a try/finally block?

Dan

"John Staggs" wrote:
Hello,

Please read this all before giving an answer :) I'm doing some
troubleshooting on a web application that my company wrote. It's written in
asp.net 1.1. The error that the Event viewer gives is:

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.

Now here's the weird part. We have a 11 servers running running this web
application at RackSpace, it's made up of 4x frontend servers running MS
Server 2003 Standard R2 x64bit SP2 that's being load balanced by a hardware
LB. The web application is running on .Net 1.1.4322.2407. Then there is 7x
backend boxes running MS Server 2003 Enterprise R2 x64bit SP2. We host
around 2,0000 customer DB's in this environment. All these servers are all
Dual Proc Dual core, 8GB of ram etc.

Now we have a customer that hosts their own environment. It's in a windows
domain environment and they have a single frontend box, and a single backend
box. Their frontend server is MS Server 2003 Standard x64 SP2, and the web
application is running on .Net 1.1.4322.2407 as well. Their backend server
is running on Windows Server 2003 Enterprise Edition SP2 32bit, with only 2GB
of RAM and only a single customer database. Their database is only around
6.3GB

Now the actual weird part is, they get that error and it basically takes
down the web application, and they're using the exact same code as us. We're
hosting tons more db's and a lot more users obviously. I've gone through and
looked at about everything I can think of and I still can't put my finger on
it. Our Dev's have gone through the code but they can't find any type of
connection leak. We're using the default Max Pool Size at both locations as
well.

So I'm wondering if anyone has any pointers on where else we should be
looking.
Mar 27 '08 #5
Hey Stephany,

Sorry It was a long day yesterday, we're connecting to MSSQL Server 2k5.
On our production and the customers environment we're using the default
settings for the max connection pool size, which is 100 by default.

As far as the ConnectionTimeout we're using default as well, which is 15
secs. - I'm not sure if your meaning it's a lifespan timeout, which it's not.

When the problem starts happening every person that is logged into the web
application starts generating those errors (the timeout error). No new
connections are allowed to be made, and any existing ones creep to a stop.
Once IIS 6.0 is reset it runs fine again.
"Stephany Young" wrote:
OK. So the data access layer is ADO, but connecting to what?

Oracle?

MySql?

SQL Server?

What are thier current settings for connection pool size and connection
timeout.

Is this happening on every connection to the 'database' in the application
or just some?
"John Staggs" <Jo********@discussions.microsoft.comwrote in message
news:33**********************************@microsof t.com...
Hey Stephany,

I'm not sure I understand your question, but we're using ADO to hit the
backend, and here's the exact error we get.

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.
Other things I noticed today was we do around 3GB - 3.5GB in raw IIS logs
daily, while this hosted customer does 300mb. Their backend box while
being
32bit still only has 2GB...so I was wondering if that could play any part.
We have 8GB of memory and we're running 64bit OS and MSSQL on our boxes.
"Stephany Young" wrote:
Well, after all that typing you ommitted the critical piece of
information.

A connection to what?
"John Staggs" <Jo********@discussions.microsoft.comwrote in message
news:A5**********************************@microsof t.com...
Hello,

Please read this all before giving an answer :) I'm doing some
troubleshooting on a web application that my company wrote. It's
written
in
asp.net 1.1. The error that the Event viewer gives is:

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.

Now here's the weird part. We have a 11 servers running running this
web
application at RackSpace, it's made up of 4x frontend servers running
MS
Server 2003 Standard R2 x64bit SP2 that's being load balanced by a
hardware
LB. The web application is running on .Net 1.1.4322.2407. Then there
is
7x
backend boxes running MS Server 2003 Enterprise R2 x64bit SP2. We host
around 2,0000 customer DB's in this environment. All these servers are
all
Dual Proc Dual core, 8GB of ram etc.

Now we have a customer that hosts their own environment. It's in a
windows
domain environment and they have a single frontend box, and a single
backend
box. Their frontend server is MS Server 2003 Standard x64 SP2, and the
web
application is running on .Net 1.1.4322.2407 as well. Their backend
server
is running on Windows Server 2003 Enterprise Edition SP2 32bit, with
only
2GB
of RAM and only a single customer database. Their database is only
around
6.3GB

Now the actual weird part is, they get that error and it basically
takes
down the web application, and they're using the exact same code as us.
We're
hosting tons more db's and a lot more users obviously. I've gone
through
and
looked at about everything I can think of and I still can't put my
finger
on
it. Our Dev's have gone through the code but they can't find any type
of
connection leak. We're using the default Max Pool Size at both
locations
as
well.

So I'm wondering if anyone has any pointers on where else we should be
looking.



Mar 27 '08 #6
Hey Dan,

We cannot say with certainty that all connections are being closed for every
request, thats part of the problem. The application is so large that it's
impossible to say with certainty. But we are investigating areas where that
may be a problem.

We don't know of any peice of the web application that the remote customer
has and uses that nobody else users on our production either.

"Dan Kelley" wrote:
Its near impossible to say with any certainty, although the most obvious
reason for this exception would be instances where connections to the DB are
not being closed and so released back into the pool.

Although the same code is being run, there may be a scenario where an
exception is being thrown on the customers system that isn't thrown on your
companies system.

Can you say with confidence that all connections are closed when finished
with, even in the event of an exception? i.e. are you using connections
either in a using block or a try/finally block?

Dan

"John Staggs" wrote:
Hello,

Please read this all before giving an answer :) I'm doing some
troubleshooting on a web application that my company wrote. It's written in
asp.net 1.1. The error that the Event viewer gives is:

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.

Now here's the weird part. We have a 11 servers running running this web
application at RackSpace, it's made up of 4x frontend servers running MS
Server 2003 Standard R2 x64bit SP2 that's being load balanced by a hardware
LB. The web application is running on .Net 1.1.4322.2407. Then there is 7x
backend boxes running MS Server 2003 Enterprise R2 x64bit SP2. We host
around 2,0000 customer DB's in this environment. All these servers are all
Dual Proc Dual core, 8GB of ram etc.

Now we have a customer that hosts their own environment. It's in a windows
domain environment and they have a single frontend box, and a single backend
box. Their frontend server is MS Server 2003 Standard x64 SP2, and the web
application is running on .Net 1.1.4322.2407 as well. Their backend server
is running on Windows Server 2003 Enterprise Edition SP2 32bit, with only 2GB
of RAM and only a single customer database. Their database is only around
6.3GB

Now the actual weird part is, they get that error and it basically takes
down the web application, and they're using the exact same code as us. We're
hosting tons more db's and a lot more users obviously. I've gone through and
looked at about everything I can think of and I still can't put my finger on
it. Our Dev's have gone through the code but they can't find any type of
connection leak. We're using the default Max Pool Size at both locations as
well.

So I'm wondering if anyone has any pointers on where else we should be
looking.
Mar 27 '08 #7
Does anyone know if it's normal when you run exec sp_who2 and you have a
process that last did something (LastBatch) nearly 24 hours ago? I have a
good handful from yesterday that are sleeping, awaiting commands.

I'm sitting around 88 total .net sqlclient data provider connections on
their server. It seems like it's adding more instead of using the existing
ones that are sleeping....and I figured GC would have came cleaned them up by
now.

"John Staggs" wrote:
Hey Dan,

We cannot say with certainty that all connections are being closed for every
request, thats part of the problem. The application is so large that it's
impossible to say with certainty. But we are investigating areas where that
may be a problem.

We don't know of any peice of the web application that the remote customer
has and uses that nobody else users on our production either.

"Dan Kelley" wrote:
Its near impossible to say with any certainty, although the most obvious
reason for this exception would be instances where connections to the DB are
not being closed and so released back into the pool.

Although the same code is being run, there may be a scenario where an
exception is being thrown on the customers system that isn't thrown on your
companies system.

Can you say with confidence that all connections are closed when finished
with, even in the event of an exception? i.e. are you using connections
either in a using block or a try/finally block?

Dan

"John Staggs" wrote:
Hello,
>
Please read this all before giving an answer :) I'm doing some
troubleshooting on a web application that my company wrote. It's written in
asp.net 1.1. The error that the Event viewer gives is:
>
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.
>
Now here's the weird part. We have a 11 servers running running this web
application at RackSpace, it's made up of 4x frontend servers running MS
Server 2003 Standard R2 x64bit SP2 that's being load balanced by a hardware
LB. The web application is running on .Net 1.1.4322.2407. Then there is 7x
backend boxes running MS Server 2003 Enterprise R2 x64bit SP2. We host
around 2,0000 customer DB's in this environment. All these servers are all
Dual Proc Dual core, 8GB of ram etc.
>
Now we have a customer that hosts their own environment. It's in a windows
domain environment and they have a single frontend box, and a single backend
box. Their frontend server is MS Server 2003 Standard x64 SP2, and the web
application is running on .Net 1.1.4322.2407 as well. Their backend server
is running on Windows Server 2003 Enterprise Edition SP2 32bit, with only 2GB
of RAM and only a single customer database. Their database is only around
6.3GB
>
Now the actual weird part is, they get that error and it basically takes
down the web application, and they're using the exact same code as us. We're
hosting tons more db's and a lot more users obviously. I've gone through and
looked at about everything I can think of and I still can't put my finger on
it. Our Dev's have gone through the code but they can't find any type of
connection leak. We're using the default Max Pool Size at both locations as
well.
>
So I'm wondering if anyone has any pointers on where else we should be
looking.
>
Mar 27 '08 #8

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

Similar topics

0
by: Silvia | last post by:
I have a application web and when execute this for a long time generated this error: Server Error in '/RAIMServer' Application. -----------------------------------------------------------...
3
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...
4
by: Guoqi Zheng | last post by:
Dear sir, I keep getting the following errors on one of my sites after clicking for many times. Timeout expired. The timeout period elapsed prior to obtaining a connection from the pool. This...
2
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 ...
4
by: Nevyn Twyll | last post by:
I've been working on an asp.net application and everything's been great. But suddenly, whether I'm tyring to use a database on my own machine, or on my server, I'm getting a timeout when trying to...
1
by: UJ | last post by:
We have recently started getting the following error message: Timeout expired. The timeout period elapsed prior to obtaining a connection from the pool. This may have occurred because all pooled...
1
by: Jake K | last post by:
I have a system timer that elapses every 10 seconds and must execute every ten seconds. Basically every 10 seconds I need to insert into a table. The following code, however, causes a "Timeout...
2
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...
2
by: anumsajeel | last post by:
Hi, Error Message:- error connecting: Timeout expired. The timeout period elapsed prior to obtaining a connection from the pool. This may have occurred because all pooled connections were...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
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,...

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.