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

  • Home
  • SEARCH
  • 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 511949
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T07:16:11+00:00 2026-05-13T07:16:11+00:00

We have an application that uses NHibernate to connect to our database on SQL

  • 0

We have an application that uses NHibernate to connect to our database on SQL Server.We use connection pooling and session per request approach to execute our queries over SQL Server.
We used SQL Server Activity Monitor to monitor connections count and noticed there was 25-30 connections involved whenever a user logged in to system.
So here’s my question to ask : can large number of connections to SQL Server leads to performance issues?

  • 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-05-13T07:16:11+00:00Added an answer on May 13, 2026 at 7:16 am

    Each connection to SQL Server requires the allocation of certain amount of memory and so there is a performance consideration in this regard.

    In the scheme of things however, 20-30 connections is a very small number.

    Have you validated that all connections belong to your application? The reason I ask is because SQL Server itself will establish and maintain a certain number of connections/sessions as part of the servers overall operation.

    Some usefull DMV’s for you to monitor:

    select * from sys.dm_exec_connections
    select * from sys.dm_exec_sessions
    

    Session ID’s above 51 are from outside of SQL Server so to speak, i.e. user sessions.

    Further to comments:

    SQL Server 2005 can support up to 32,767 connections. To check your capacity execute:

    select @@MAX_CONNECTIONS
    

    If connection pooling is being used then connections will remain open and in a sleep state until required for processing requests. Alternatively, perhaps the application is not closing connections when requests have finished processing.

    I can only comment from a SQL Server perspective as I am not familiar with the mechanics of NHibernate.

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

Sidebar

Ask A Question

Stats

  • Questions 275k
  • Answers 275k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer Make sure your datacontext is set to RelativeSource Self somewhere… May 13, 2026 at 2:40 pm
  • Editorial Team
    Editorial Team added an answer Your problem is that the pattern used in SimpleDateFormat unfortunately… May 13, 2026 at 2:40 pm
  • Editorial Team
    Editorial Team added an answer It hit me this morning how to solve this: instead… May 13, 2026 at 2:40 pm

Related Questions

We are trying to come up with an architecture approach for designing an application
I'm trying to move toward TDD, ORM, Mocking, ect. I need a good example
I have a desktop (winforms) application that uses a Firebird database as a data
I'm checking out Linq for NHibernate 2.1 to use in an ASP.NET MVC application
I've been reading Pro ASP.NET MVC Framework, Steven Sanderson, and in chapter 11 it

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

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.