I'm investigating this error from a MVC3 application that is failing under load:
"The timeout period elapsed prior to obtaining a connection from the pool. This may have occurred because all pooled connections were in use and max pool size was reached."
The application is using the Repository pattern and Entity Framework, and my hunch is that it's not closing off connections properly. I want to be able to monitor the number of pooled connections on the SQL Server. Searching around leads me to believe that I can use these counters in Perfmon:
- .NET CLR Data
- .NET Data Provider for SQLServer
However both of them show and being disabled / grayed out.
I am running Perfmon directly on the server, and both ISS and SQL Server are running on the server. Any ideas why these counters would not be available?
I've also tried using SQL Profiler to monitor pooled connections, but the EventSubClass column isn't available for AuditLogin.