473,395 Members | 1,977 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.

view connection pool/open or used connections?

Hi,

I had an error concerning the connection-pool: "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." (in VB.NET).

I was already able to solve the problem, because I didn't know before I have
to close the SqlDataReader also.

But I saw in some forums terms like 'the performance monitor' whcih can be
used to see the connection pool or the connections that are used.
Unfortunately I wasn't able to find this 'monitor'. Can anybody tell me
where to find it or something liek that? so I will be able to see if I'm
using too many connections or having still some connections open.

I'm using VB.NET (2003), with an MSDE database and Sql Server.

Thanks in advance,

Pieter
Nov 20 '05 #1
6 7672
Hi,

You might check them using Enterprise Manager (Management/Current
Activity) or using a stored procedure sp_who.

--
Miha Markic - RightHand .NET consulting & development
miha at rthand com
www.rhand.com

"DraguVaso" <pi**********@hotmail.com> wrote in message
news:3f**********************@news.skynet.be...
Hi,

I had an error concerning the connection-pool: "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." (in VB.NET).

I was already able to solve the problem, because I didn't know before I have to close the SqlDataReader also.

But I saw in some forums terms like 'the performance monitor' whcih can be
used to see the connection pool or the connections that are used.
Unfortunately I wasn't able to find this 'monitor'. Can anybody tell me
where to find it or something liek that? so I will be able to see if I'm
using too many connections or having still some connections open.

I'm using VB.NET (2003), with an MSDE database and Sql Server.

Thanks in advance,

Pieter

Nov 20 '05 #2
Pieter,

We are having a really big problem with TIMEOUTS after we migrate to windows
2003 (SQL / APP Server).

We are using VBNET to build serviced components...

How did you solve your problems ?

Thanks
"DraguVaso" <pi**********@hotmail.com> wrote in message
news:3f**********************@news.skynet.be...
Hi,

I had an error concerning the connection-pool: "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." (in VB.NET).

I was already able to solve the problem, because I didn't know before I have to close the SqlDataReader also.

But I saw in some forums terms like 'the performance monitor' whcih can be
used to see the connection pool or the connections that are used.
Unfortunately I wasn't able to find this 'monitor'. Can anybody tell me
where to find it or something liek that? so I will be able to see if I'm
using too many connections or having still some connections open.

I'm using VB.NET (2003), with an MSDE database and Sql Server.

Thanks in advance,

Pieter

Nov 20 '05 #3
Thank you very much!!!

"Miha Markic" <miha at rthand com> wrote in message
news:#4**************@TK2MSFTNGP11.phx.gbl...
Hi,

You might check them using Enterprise Manager (Management/Current
Activity) or using a stored procedure sp_who.

--
Miha Markic - RightHand .NET consulting & development
miha at rthand com
www.rhand.com

"DraguVaso" <pi**********@hotmail.com> wrote in message
news:3f**********************@news.skynet.be...
Hi,

I had an error concerning the connection-pool: "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." (in VB.NET).

I was already able to solve the problem, because I didn't know before I

have
to close the SqlDataReader also.

But I saw in some forums terms like 'the performance monitor' whcih can be used to see the connection pool or the connections that are used.
Unfortunately I wasn't able to find this 'monitor'. Can anybody tell me
where to find it or something liek that? so I will be able to see if I'm
using too many connections or having still some connections open.

I'm using VB.NET (2003), with an MSDE database and Sql Server.

Thanks in advance,

Pieter


Nov 20 '05 #4
Hi!

I read on some newsgroups that people wereh aving the same problems while
migrating.

I don't know if the things that caused the problem in my application arethe
same as yours: What happend was: I used some SqlDataReaders, but I didn't
know that every datareader has to be closes explicit, just liek your
connections.
So everytime you used a DataReader be sure you close it:
MyDataReader.Close
MyDataReader = Nothing

Same thing with the connections:
If MyConnection.state = connectionstate.open Then
MyConnection.close
End if
MyConnection = nothing

And I guess you better do the same thing wth commands:
MyCommand.close
MyCommand = nothing

That solved my problem, I hope it helps you too?

Pieter

"Rubens Naves" <ru*********@hotmail.comm> wrote in message
news:eN**************@tk2msftngp13.phx.gbl...
Pieter,

We are having a really big problem with TIMEOUTS after we migrate to windows 2003 (SQL / APP Server).

We are using VBNET to build serviced components...

How did you solve your problems ?

Thanks
"DraguVaso" <pi**********@hotmail.com> wrote in message
news:3f**********************@news.skynet.be...
Hi,

I had an error concerning the connection-pool: "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." (in VB.NET).

I was already able to solve the problem, because I didn't know before I

have
to close the SqlDataReader also.

But I saw in some forums terms like 'the performance monitor' whcih can be used to see the connection pool or the connections that are used.
Unfortunately I wasn't able to find this 'monitor'. Can anybody tell me
where to find it or something liek that? so I will be able to see if I'm
using too many connections or having still some connections open.

I'm using VB.NET (2003), with an MSDE database and Sql Server.

Thanks in advance,

Pieter


Nov 20 '05 #5
Rubens Naves (ru*********@hotmail.comm) writes:
We are having a really big problem with TIMEOUTS after we migrate to
windows 2003 (SQL / APP Server).

We are using VBNET to build serviced components...


So what sort of timeouts are you getting? Dragu was having problems with
the connection pool, which I believe is due to careless handling of
the connections on the client side. (But ADO .Net is not my area.)

If you get command timeouts, this is because ADO .Net, as all other client
libraries except DB-Library, has a default timeout of 30 seconds. The
simple remedy is to set the timeout to 0, which means no timeout. However,
you may of course still experience that your queries are slow.

--
Erland Sommarskog, SQL Server MVP, so****@algonet.se

Books Online for SQL Server SP3 at
http://www.microsoft.com/sql/techinf...2000/books.asp
Nov 20 '05 #6
above all that if you need to use a monitor to view asp.net related counters

Start >> Run >> PerfMon
Add a few counters... (you have some 50 odd related to asp.net)

and keep it running...

hope this helps,

HD

"DraguVaso" <pi**********@hotmail.com> wrote in message
news:3f**********************@news.skynet.be...
Hi,

I had an error concerning the connection-pool: "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." (in VB.NET).

I was already able to solve the problem, because I didn't know before I have to close the SqlDataReader also.

But I saw in some forums terms like 'the performance monitor' whcih can be
used to see the connection pool or the connections that are used.
Unfortunately I wasn't able to find this 'monitor'. Can anybody tell me
where to find it or something liek that? so I will be able to see if I'm
using too many connections or having still some connections open.

I'm using VB.NET (2003), with an MSDE database and Sql Server.

Thanks in advance,

Pieter

Nov 20 '05 #7

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

Similar topics

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...
2
by: Jim Heavey | last post by:
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...
1
by: ugurceng | last post by:
Hi everbody , I need more info about connection pooling , We are developing a CRM project with ASP.NET and when more users connect to the MS SQL DB at the same time , which problems would be...
35
by: Eric Sabine | last post by:
In my Finally block, I was using cn.close (where cn is an ADO.NET connection object, SQLConnection to be exact) and then I came across the following in some microsoft code. If Not cn Is Nothing...
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...
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...
1
by: ramneekm | last post by:
hi all, i am working on a asp.net web app and using ado.net 's SqlClient Data Provider to connect to sqlserver 2005. I am getting the exception "Timeout expired. The timeout period elapsed...
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...
7
by: fniles | last post by:
I am using VB.Net 2003 and MS Access (connecting using OleDBConnection). I read using DataAdapter and DataSet, not DataReader. When many people try to access the database at the same time, I get...
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
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
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...
0
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
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.