Note that there are some explanatory texts on larger screens.

plurals
  1. POHow to detect SqlServer connection leaks in a ASP.net applications?
    text
    copied!<p>I'm currently doing some GUI testing on a ASP.net 2.0 application. The RDBMS is SQL Server 2005. The host is Win Server 2003 / IIS 6.0.</p> <p>I do not have the source code of the application because it was programmed by an external company who's not releasing the code.</p> <p>I've noticed that the application performs well when I restart IIS but after some testing, after I have opened and closed my browser for a couple of hours, the application starts to get slower and slower. I was wondering if this behaviour was due to a bad closing connection practice from the programmers : I'm suspecting an open connection leak on the database here.</p> <p>I guess the .Net garbage collector will eventually close them but... that can take a while, no?</p> <p>I've got SQL Server Management Studio and I do notice from the activity monitor that there are quite a few connections opened on the database.</p> <p>From all that's being said above, here are some questions related to the main question : </p> <ol> <li><p>Is there any way to know in SQL Server 2005 if connections are open because they're waiting to be used in a connection pool or if they're open because they are used by an application?</p></li> <li><p>Does somone know of good online/paper resources where I could learn how to use performance counters or some other kind of tools to help track down these kind of issues?</p></li> <li><p>If performance counters are the best solution, what are the variables that I should watch?</p></li> </ol>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload