Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8712013
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T05:01:12+00:00 2026-06-13T05:01:12+00:00

I’m trying to understand how MS Enterprise Library’s data access block manages its connections

  • 0

I’m trying to understand how MS Enterprise Library’s data access block manages its connections to SQL. The issue I have is that under a steady load (from a load test), at 10 minute intervals the number of connections to SQL increases quickly – which causes noticeable jump in page response times from the website.

This is the scenario I’m running:

  • Visual Studio load test tools, running against 3 web servers behind a load balancer
    • The tools give full visibility over the performance counters to all web + DB boxes
  • The tests take ~10 seconds each, and perform 4 inserts (form data), and some trivial selects
  • There are 60 tests running concurrently. There is no increase or decrease in load during the entire test.
    • The test is run for between 20 minutes and 3 hours, with consistent results.

And this is the issue we see:

  • Exactly every 10 minutes, the performance counter from SQL for SQL General: User Connections increases – by ~20 connections total
    • The pages performing the HTTP post / DB insert are the ones most significantly affected. The other pages show moderate, but noticeable rises.
    • The CPU/memory load on the web servers is unaffected
  • This increase corresponds with a notable bump in page response times – E.g. from .3 seconds average to up to 5 seconds
  • After ~5 minutes it releases many of the connections, with no affect on web performance
    • The following 5 minutes of testing gives the same (normal) web performance
    • Ultimately, the graph looks like a square wave
  • Happens all over again, 10 minutes after the first rise

What I’ve looked at:

Database calls:

All calls in the database start with:

SqlDatabase database = new SqlDatabase([...]);

And execute either proc with no required output:

return database.ExecuteScalar([...], [...]);

Or read wrapped in a using statement:

using (SqlDataReader reader = (SqlDataReader)database.ExecuteReader([...], [...]))
{
    [...]
}

There are no direct uses of SqlConnection, no .Open() or .Close() methods, and no exceptions being thrown

Database verification:

We’ve run SQL profiler over the login / logout events, and taken snapshots with the sp_who2 command, showing who owns the connections. The latter shows that indeed the web site (seen by machine + credential) are holding the connections.

There are no scheduled jobs (DB or web server), and the user connection load is stable when there is no load from the web servers.

Connection pool config

I know the min & max size of the connection pool can be altered with the connection string.

E.g.:

“Data Source=[server];Initial Catalog=[x];Integrated Security=SSPI;Max
Pool Size=75;Min Pool Size=5;
“

A fall back measure may be to set the minimum size to ~10

I understand the default max is 100, and the default min is 0 (from here)

I’m a little bit lithe to think of connection pooling (specific to this setting) and the User Connections performance counter from SQL. This article introduces these connection pools as being used to manage connection string, which seems different to what I assume it does (hold a pool of connections generally available, to avoid the cost of re-opening them on SQL)

I still haven’t seen any configuration parameters that are handily defaulting to 5 or 10 minutes, to zero in on…


So, any help is appreciated.

I know that 10 minute spikes sounds like a change in load, or new activity is happening – but we’ve worked quite hard to isolate those & any other factors – and for this question, I am hoping to understand EL scaling its connections up & down.

Thanks.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-13T05:01:13+00:00Added an answer on June 13, 2026 at 5:01 am

    So, it turns out that SQL user connections are created & added to the pool whenever all other connections are busy. So when long-running queries occur, or the DB is otherwise unresponsive, it will choose to expand to manage the load.

    The cause of this in our case happened to be a SQL replication job (unfortunate, but found…) – And the changes in the # of User Connections was just a symptom, not a possible cause.

    Although the cause turned out to be elsewhere, I now feel I understand the connection pool management, from this (and assumably other) SQL libraries.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am trying to understand how to use SyndicationItem to display feed which is
I have a string like this: La Torre Eiffel paragonata all’Everest What PHP function
I have a small JavaScript validation script that validates inputs based on Regex. I
I have a French site that I want to parse, but am running into
I'm parsing an RSS feed that has an ’ in it. SimpleXML turns this
I'm trying to select an H1 element which is the second-child in its group
I'm trying to create an if statement in PHP that prevents a single post
I am trying to loop through a bunch of documents I have to put
I have a .ini file as follows: [playlist] numberofentries=2 File1=http://87.230.82.17:80 Title1=(#1 - 365/1400) Example
Basically, what I'm trying to create is a page of div tags, each has

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.