Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Connection max pool size in SQL Server 2008

We are using SQL Server 2008 express. At the moment in the connection string we have the default pool size of 100. At peak times we are receiving time-out error when processing transactions into the DB.

The situation has improved since we have set the pool-size to 200. My question is what is the maximum pool-size you can have in express edition? This edition is run with a GB of RAM.

Also we have the full-blown version of SQL. Can we specify a larger pool-size with the full blown version and if we do increase the pool size, would we have to increase such things as RAM etc to see the benefit?

Thanks in advance,

Matt.

like image 673
turtleboy Avatar asked Jun 11 '13 15:06

turtleboy


People also ask

What is the max pool size in connection pool SQL Server?

Adding Connections Connections are added to the pool as needed, up to the maximum pool size specified (100 is the default). Connections are released back into the pool when they are closed or disposed.

What is maximum allowable value of max pool size in a connection string?

To set the maximum pool size: n is the number of connections allowed per pool, from 1 to 2,147,483,647 (the default).

How do I find the max connection pool in SQL Server?

Restart the SQL Server Instance, refresh it and again go to Properties > Connections and you will see 300 in "Maximum number of concurrent connections" scroll box.


1 Answers

Whenever you have such questions you should go to Maximum Capacity Specifications for SQL Server. Strictly speaking Connection pool size is a client setting but the engine needs to keep open a connection so you can hit server side limits. The Connections per client values is Maximum value of configured connections which implies is configurable through a Server Configuration Option and ideed it is, see user connections:

The user connections option specifies the maximum number of simultaneous user connections that are allowed on an instance of SQL Server. The actual number of user connections allowed also depends on the version of SQL Server that you are using, and also the limits of your application or applications and hardware. SQL Server allows a maximum of 32,767 user connections. Because user connections is a dynamic (self-configuring) option, SQL Server adjusts the maximum number of user connections automatically as needed, up to the maximum value allowable.

like image 97
Remus Rusanu Avatar answered Oct 07 '22 21:10

Remus Rusanu