Sql – Diagnosing SqlConnection leaks


I'm running into an issue with a web application that is exhausting all available connections in the connection pool. I seem to recall some good tools used to diagnose all active connections, but am drawing a blank. What are some good options for diagnosing this issue?

Best Solution

.Net memory profiler of WinDbg with SOS will allow you to track down who is holding references to your connection objects, with that information you should be able to track down the offending methods.

Related Question