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

Connection Pool

How do I set up a Connection Pool?

How can I look on the server and see how many connections are being used by
my application? I am pretty sure that my application must be leaving
connections open, because I begin to receive error message indicating that
the system can not open a connection and I should check my connection pool,
with me being the only one on the server, this should not really be a
problem. I am not sure why I do not receive the same error message while
testing on my own machine, but I am guessing that somehow or another those
connections must be being closed by the system some how.

Your assistance would be greatly appreciated!!!!

Nov 18 '05 #1
2 2434
Hi Jim,

You can use performance counters to see the SQL connection pool, which is
probably the easiest way to see this. You'll want to look at open
connections as well as the .Net sql counters for this (can't recall offhand
what the names are - use Server Explorer or PerfMon to check them out).

+++ Rick ---

--

Rick Strahl
West Wind Technologies
http://www.west-wind.com/
http://www.west-wind.com/weblog/
----------------------------------
Making waves on the Web
"Jim Heavey" <Ji*******@nospam.com> wrote in message
news:Xn*********************************@207.46.24 8.16...
How do I set up a Connection Pool?

How can I look on the server and see how many connections are being used by my application? I am pretty sure that my application must be leaving
connections open, because I begin to receive error message indicating that
the system can not open a connection and I should check my connection pool, with me being the only one on the server, this should not really be a
problem. I am not sure why I do not receive the same error message while
testing on my own machine, but I am guessing that somehow or another those
connections must be being closed by the system some how.

Your assistance would be greatly appreciated!!!!

Nov 18 '05 #2
Hi,

To add to Rick

Performance Counters for Connection Pooling
The .NET Framework Data Provider for SQL Server adds several performance
counters that enable you to fine-tune connection pooling characteristics,
detect intermittent problems related to failed connection attempts, and
detect problems related to timed-out requests to your SQL Server.

The following table lists the connection pooling counters that can be
accessed in Performance Monitor under the ".NET CLR Data" performance
object.

Counter
Description
SqlClient: Current # of pooled and non pooled connections
Current number of connections, pooled or not.
SqlClient: Current # pooled connections
Current number of connections in all pools associated with the process.
SqlClient: Current # connection pools
Current number of pools associated with the process.
SqlClient: Peak # pooled connections
The highest number of connections in all pools since the process started.

Note: this counter is only available when associated with a specific process
instance.

The _Global instance will always return 0.
SqlClient: Total # failed connects The total number of connection open
attempts that have failed for any reason.

Source::
http://msdn.microsoft.com/library/de...taprovider.asp

Regards
Ashish M Bhonkiya


"Rick Strahl [MVP]" <ri********@hotmail.com> wrote in message
news:uM**************@TK2MSFTNGP09.phx.gbl...
Hi Jim,

You can use performance counters to see the SQL connection pool, which is
probably the easiest way to see this. You'll want to look at open
connections as well as the .Net sql counters for this (can't recall offhand what the names are - use Server Explorer or PerfMon to check them out).

+++ Rick ---

--

Rick Strahl
West Wind Technologies
http://www.west-wind.com/
http://www.west-wind.com/weblog/
----------------------------------
Making waves on the Web
"Jim Heavey" <Ji*******@nospam.com> wrote in message
news:Xn*********************************@207.46.24 8.16...
How do I set up a Connection Pool?

How can I look on the server and see how many connections are being used

by
my application? I am pretty sure that my application must be leaving
connections open, because I begin to receive error message indicating that the system can not open a connection and I should check my connection

pool,
with me being the only one on the server, this should not really be a
problem. I am not sure why I do not receive the same error message while testing on my own machine, but I am guessing that somehow or another those connections must be being closed by the system some how.

Your assistance would be greatly appreciated!!!!


Nov 18 '05 #3

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

Similar topics

4
by: Mahesh D. Rane | last post by:
Hi, I am connecting to sql databse from windows C# form. when i close the form, then also the connection to databse is active. Its not allowing me to delete the database. But if i close the...
11
by: pradeep_TP | last post by:
Hi all, I have a few questions that I have been wanting to ask for long. These are all related to ADO.net and specifically to conenction to database. 1) If I have opened a connection to a...
7
by: greg | last post by:
Hi We have w2k, iis5, .NET/c# I periodically receive this message and the system freezes ++++++++++++++++++++++++++++++++++++++++++++++++++ Timeout expired. The timeout period elapsed...
3
by: Martin B | last post by:
Hallo! I'm working with C# .NET 2.0, implementing Client/Server Applications which are connecting via Network to SQL-Server or Oracle Databases. To stay independent from the underlaying Database...
3
by: LRK | last post by:
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...
10
by: Steven Blair | last post by:
As I understand it, if I create a connection object in my application and close the connection, the next time I open a connection with the same connection string I should be using a pooled...
2
by: RyoSaeba | last post by:
Hello, I have a problem with the session state set to Sql Server (AspNet 1.1, Windows Server 2003 on an Application Center cluster, Sql Server 2000 on another server). Sometimes, when many user...
2
by: JoeSep | last post by:
Hi! Is it correct/safe to define a connection pool in the string "sqlConnectionString" of the "sessionState" section of Web.config? - The application is developed using AspNet 1.1 in a Windows...
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: 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...
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
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
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,...
0
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...

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.