PoolMaxSize
Specifies the maximum number of connections allowed in the connection pool.
Data Type
int
Default Value
100
Remarks
PoolMaxSize defines the maximum number of active connections that can be maintained in the connection pool. When the limit is reached, new connection requests must wait for an existing connection to be released back into the pool.
This property is useful for optimizing resource utilization and ensuring that the application does not exceed server or network limits.
To disable pooling, set PoolMaxSize to 0 or to a negative value.
Note: Disabling pooling can simplify connection management, but may lead to reduced performance in high-traffic scenarios.