Solved

How to set Number connections for connection pooling

Posted on 2004-08-20
6
191 Views
Last Modified: 2010-04-06
Hi

iam getting the below error if iam trying to access my web site. This web site is running on Windows 2000 server and Database is MS SQL 2000.

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 IIS, i had configuered number of connections to unlimited. Is there any other place to set the same and what is the minimum and maximum number of connections we can set.

regs
Mohan
0
Comment
Question by:mohanvamsi_g
  • 2
6 Comments
 
LVL 2

Accepted Solution

by:
MGrassman earned 25 total points
ID: 11850888
If you are using Visual Studio.net 2003, and maybe other versions also, you can follow this link and that seems to be the fix.

http://support.microsoft.com/default.aspx?kbid=830118

Hope that helps.

0
 
LVL 2

Expert Comment

by:MGrassman
ID: 11850896
One more thing make sure you close all objects that were created and not being used any more.

cn.close
set cn = nothing

rs.close
set rs = nothing
0
 
LVL 7

Assisted Solution

by:jay_eire
jay_eire earned 25 total points
ID: 11863219
Hi Mohan
you can run Performance Monitor to see exactly what is happening with you connection pool ;

Connections Currently Active: The current number of connections being used by applications.
Connections Currently Free: The current number of connections available for connection requests.
Connections Sec/Hard: The number of connections made to data sources per second.
Connections Sec/Soft: The number of connections from the pool per second.
Disconnections Sec/Hard: The number of disconnects made to data sources per second.
Disconnections Sec/Soft: The number of disconnects from the pool per second

This TECH NET document will show you how to set it up
http://support.microsoft.com/default.aspx?scid=kb;EN-US;216950

The maximum amount of Threads in a pool depends on the power of your web server; If you are using ASP by default the number of  threads per processor is set at 10 . Here are some excellent TECH NET documents on  Monitoring and Fine Tuning Your Server http://www.microsoft.com/windows2000/techinfo/reskit/en-us/default.asp?url=/windows2000/techinfo/reskit/en-us/iisbook/c05_preventing_processor_bottlenecks.asp
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/ado270/htm/mdhowthreadsperprocessor.asp

From what I ember you can use IIS Administration Kit to really fine tune your web server, you can increase decease the number of threads available per processor.

Thanks
Jay Eire
(<>..<>)
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
XSL Grouping 7 38
website content maintenance 3 78
Form submit issue 11 80
.php tree directory? 5 55
Styling your websites can become very complex. Here I'll show how SASS can help you better organize, maintain and reuse your CSS code.
SASS allows you to treat your CSS code in a more OOP way. Let's have a look on how you can structure your code in order for it to be easily maintained and reused.
Viewers will learn one way to get user input in Java. Introduce the Scanner object: Declare the variable that stores the user input: An example prompting the user for input: Methods you need to invoke in order to properly get  user input:
The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)

911 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now