473,387 Members | 1,724 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,387 software developers and data experts.

connection pooling problem

Let me say first that I don't know much about .NET. We inherited an app from
a group of developers and we have a second group of contractors working on
the app. The first group set min=100 in the config file. Since there will
only be about 15 users of the app we decided to see if we could lower that
number.

We reduced it from 100 to 60 then to 25. I was looking to see if any more
than that number show up in sql server. In every instance I noticed that the
number of connections in sql server is a little (from 1 to 6 connections)
over whatever amount is set in the config file. I've been wondering if the
app is opening new connections rather than using the ones that are already
there. The other connections in sql server show as "sleeping".

After we lowered the min to 25 we noticed that there were a lot more errors
in the app error log file that said "There is already an open DataReader
associated with this Connection which must be closed first." for a particular
page. I asked one of the contractors if he is sure that all of the
connections and datareaders are being closed. He thought so but wasn't
positive. We're going to check that again today.

We're also going to go back to min=100 to see if the number of errors on
this page go back down. If they do then we'll assume the two are related
somehow. I was also thinking of taking the min settng out of the config file
and just use the app defaults and see what happens.

Can anyone shed any light on what might be happening here?

Thanks,
--
Dan D.
Jun 3 '06 #1
2 1434
If you only have 15 active users in a web site, there should be quite
few database connections in the pool. Definitely not a hundred, more
like three.

The only time there is any need for more than one connection is when the
server is creating more than one page at the same time, or when a page
uses more than one connection at a time.

The connection pool doesn't contain any more connections than what is
used, so there is really never any reason to lower the maximum size of
the pool. If the pool is filling up with connections, though, it's a
sign that there is some connections (or datareaders) that isn't closed
properly in the application.

Dan D. wrote:
Let me say first that I don't know much about .NET. We inherited an app from
a group of developers and we have a second group of contractors working on
the app. The first group set min=100 in the config file. Since there will
only be about 15 users of the app we decided to see if we could lower that
number.

We reduced it from 100 to 60 then to 25. I was looking to see if any more
than that number show up in sql server. In every instance I noticed that the
number of connections in sql server is a little (from 1 to 6 connections)
over whatever amount is set in the config file. I've been wondering if the
app is opening new connections rather than using the ones that are already
there. The other connections in sql server show as "sleeping".

After we lowered the min to 25 we noticed that there were a lot more errors
in the app error log file that said "There is already an open DataReader
associated with this Connection which must be closed first." for a particular
page. I asked one of the contractors if he is sure that all of the
connections and datareaders are being closed. He thought so but wasn't
positive. We're going to check that again today.

We're also going to go back to min=100 to see if the number of errors on
this page go back down. If they do then we'll assume the two are related
somehow. I was also thinking of taking the min settng out of the config file
and just use the app defaults and see what happens.

Can anyone shed any light on what might be happening here?

Thanks,

Jun 3 '06 #2
Thanks. We'll check again to be sure the datareaders and connections are
being closed properly.
--
Dan D.
"Göran Andersson" wrote:
If you only have 15 active users in a web site, there should be quite
few database connections in the pool. Definitely not a hundred, more
like three.

The only time there is any need for more than one connection is when the
server is creating more than one page at the same time, or when a page
uses more than one connection at a time.

The connection pool doesn't contain any more connections than what is
used, so there is really never any reason to lower the maximum size of
the pool. If the pool is filling up with connections, though, it's a
sign that there is some connections (or datareaders) that isn't closed
properly in the application.

Dan D. wrote:
Let me say first that I don't know much about .NET. We inherited an app from
a group of developers and we have a second group of contractors working on
the app. The first group set min=100 in the config file. Since there will
only be about 15 users of the app we decided to see if we could lower that
number.

We reduced it from 100 to 60 then to 25. I was looking to see if any more
than that number show up in sql server. In every instance I noticed that the
number of connections in sql server is a little (from 1 to 6 connections)
over whatever amount is set in the config file. I've been wondering if the
app is opening new connections rather than using the ones that are already
there. The other connections in sql server show as "sleeping".

After we lowered the min to 25 we noticed that there were a lot more errors
in the app error log file that said "There is already an open DataReader
associated with this Connection which must be closed first." for a particular
page. I asked one of the contractors if he is sure that all of the
connections and datareaders are being closed. He thought so but wasn't
positive. We're going to check that again today.

We're also going to go back to min=100 to see if the number of errors on
this page go back down. If they do then we'll assume the two are related
somehow. I was also thinking of taking the min settng out of the config file
and just use the app defaults and see what happens.

Can anyone shed any light on what might be happening here?

Thanks,

Jun 4 '06 #3

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

Similar topics

3
by: Harry | last post by:
Using Oracle 8i enterprise on win 2000 (sp3) Installed the standard configuration & whenever I make a connection it takes about 10 secs. It's running on a P1900 with 1gb Ram so no reason there...
5
by: John | last post by:
Does COM.ibm.db2.jdbc.DB2DataSource, (which supports connection pooling) need to be run within a J2EE container environment before the connection pooling facility is actually available to a user? ...
1
by: Mark | last post by:
I know that DB2 LUW version 8 has "connection pooling" that provides a connection concentrator (limits the number of simultaneous connections that can occur). But does it really provide connection...
16
by: crbd98 | last post by:
Hello All, Some time ago, I implemented a data access layer that included a simple connectin pool. At the time, I did it all by myself: I created N connections, each connection associated with...
20
by: fniles | last post by:
I am using VS2003 and connecting to MS Access database. When using a connection pooling (every time I open the OLEDBCONNECTION I use the exact matching connection string), 1. how can I know how...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
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...
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
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...

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.