473,785 Members | 3,032 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

determining max pool size

hi

i've got an app that runs something like 4000 updates when certain
pages are updated. it's taking on average 20 seconds for these pages
to execute the update command (15 seconds if all i do is open and
close the connection without even executing the sql statement). the
original max pool size set in the web.config file was set to 100. I've
boosted the max pool size to 500 and now get the update command to
execute in about 2-3 seconds.

i'm worried that i'm going to run out of resources somewhere. this is
an SQL Express server. the "maximum number of concurrent connections"
in SQL Express is set to 0 (unlimited). the machine SQL Express is
installed on is Intel Xeon 2.8 with 2.5 gigs ram.

the ado.net default max pool size is 100. why? why not boost it to
1000 or more? what environmental issues do i need to consider when
setting the max pool size?

tks in advance.

Apr 8 '08 #1
4 11395
what environmental issues do i need to consider when
setting the max pool size?
I believe SQL Server Express isn't meant for this kind of situation and that
you should spend some money on proper SQL Server licenses.
Apr 8 '08 #2
On Apr 8, 11:01*am, "Peter Morris"
<peter[dot]morris(at)capab leobjects.comwr ote:
what environmental issues do i need to consider when
setting the max pool size?

I believe SQL Server Express isn't meant for this kind of situation and that
you should spend some money on proper SQL Server licenses.
SQL Express is running in my QA environment. I've got SQL 2000
Standard running in production and plan on making the changes there
should things stress test well in QA.
Apr 8 '08 #3
I do not see how increasing pool size changes the speed Update command is
running with..
Are you sure you are closing DB connections always? Cause it sounds like you
do not... 500 open connections to SQL server I awfully lot....

George.

"steven" <s_*****@hotmai l.comwrote in message
news:95******** *************** ***********@u12 g2000prd.google groups.com...
hi

i've got an app that runs something like 4000 updates when certain
pages are updated. it's taking on average 20 seconds for these pages
to execute the update command (15 seconds if all i do is open and
close the connection without even executing the sql statement). the
original max pool size set in the web.config file was set to 100. I've
boosted the max pool size to 500 and now get the update command to
execute in about 2-3 seconds.

i'm worried that i'm going to run out of resources somewhere. this is
an SQL Express server. the "maximum number of concurrent connections"
in SQL Express is set to 0 (unlimited). the machine SQL Express is
installed on is Intel Xeon 2.8 with 2.5 gigs ram.

the ado.net default max pool size is 100. why? why not boost it to
1000 or more? what environmental issues do i need to consider when
setting the max pool size?

tks in advance.

Apr 8 '08 #4
On Apr 8, 11:33*am, "George Ter-Saakov" <gt-...@cardone.com wrote:
I do not see how increasing pool size changes the speed Update command is
running with..
the larger the pool size, the more requests can be server. anything
over 500 requests sits in a queue.
Are you sure you are closing DB connections always? Cause it sounds like you
do not... 500 open connections to SQL server I awfully lot....
agreed. i've inherited this project from another developer who was
apparently aware of a memory leak somewhere because she had pooling
turned off altogether. this worked fine for her until the number of
records grew and now we're dealing with some very expensive opening
and closing of db connections. i've spent a little while working on
trying to make sure the connections are closed, but there's thousands
of lines of code and i can't be sure i've caught everything. we're
also looking at phasing out the current site by the end of the year,
so i'm just trying to make things work without expending huge amounts
of resources on trying to track down every issue.

i've reduced the number of connectios in the pool to 100 and it seems
to be executing quickly enough. my main concern now is that i've
missed closing connections somewhere and if i create too small a
connection pool, the pool will max out. so, i'd rather have a really
large pool and hope the garbage collector has time to clean up any
unused connections than too small a connection pool. if a large
connection pool simply means more CPU and ram usage, i'm okay with
that.
>
George.

"steven" <s_mu...@hotmai l.comwrote in message

news:95******** *************** ***********@u12 g2000prd.google groups.com...
hi
i've got an app that runs something like 4000 updates when certain
pages are updated. it's taking on average 20 seconds for these pages
to execute the update command (15 seconds if all i do is open and
close the connection without even executing the sql statement). the
original max pool size set in the web.config file was set to 100. I've
boosted the max pool size to 500 and now get the update command to
execute in about 2-3 seconds.
i'm worried that i'm going to run out of resources somewhere. this is
an SQL Express server. the "maximum number of concurrent connections"
in SQL Express is set to 0 (unlimited). the machine SQL Express is
installed on is Intel Xeon 2.8 with 2.5 gigs ram.
the ado.net default max pool size is 100. why? why not boost it to
1000 or more? what environmental issues do i need to consider when
setting the max pool size?
tks in advance.- Hide quoted text -

- Show quoted text -
Apr 8 '08 #5

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

Similar topics

2
5425
by: Luca | last post by:
I have the following problem: I'm developing a system where there are some processes that communicate each other via message queues; the message one process can send to another process is as follows: ****************************************** struct ST_MSG { int iType; char aData; }
1
8423
by: Konstantinos Michas | last post by:
Hello Experts, I make a connection with .Net Sqlclient Data Provider to my server and I adjust the min pool size = 0, but when I check the sysprocesses I see that 2 connections have been made. Why is that? am I missing something here? Conn. string "server=MYSERVER;user id=sa;database=MYDB;min pool size=0;max pool size=10;packet size=3072;Application
1
541
by: Ken | last post by:
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. This has only happend since upgrading to .net 2003. The application worked perfect prior to the upgrade. I do not have SQL Server debugging on yet this error occurs 'EVERY' time it attempt to execute the sql.open() When I open SQL and look at the...
36
4365
by: xixi | last post by:
hi, we are using db2 udb v8.1 on windows, i try to use the configuration advisor to get recommendation on the parameter setting, at first, i give the target memory for DB2 is 80% of the physical memory, it gives me a recommendation on bufferpool size, so i accept the change, later on , i found that i gave too much memory to DB2, so i change the target lower, but the recommendation doesn't change the buffer pool size accordingly, why is...
4
54998
by: Bei | last post by:
I would like to allow more connection to SQL servers from the web application. Do you know what is the code to set maximum pool size in web.config file? Thanks
4
23193
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 may have occurred because all pooled connections were in use and max pool size was reached. Below is my code. Any help will be appreciated.
1
11059
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 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." error at cn.open() after about 2 minutes of executing. private...
1
3438
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 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." . Internally i am using a
1
6006
by: jobs | last post by:
Re: Troubleshooting Timeout expired. All pooled connections were in use and max pool size was reached. New webservers. win2003. IIS6. asp.net 2.0/ sql server 2005 and Oracle 9i through a 64 bit Oracle client. Everything working fine until this. I started getting these errors as the new website activity started to heat up. Timeout expired. The timeout period elapsed prior to obtaining a
0
9645
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
10327
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
10151
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
9950
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
8973
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
0
6740
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
5381
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
5511
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
2
3647
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.