Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How many connections are available in the ADO.NET connection pool

Is it possible (from an ASP.NET application) to check how many connections of the ADO.NET connection pool are currently in-use and how many are available (not currently in-use)?

like image 627
M4N Avatar asked Sep 10 '10 14:09

M4N


1 Answers

You have tried with Performance Counters?

http://msdn.microsoft.com/en-us/library/ms254503.aspx

NumberOfActiveConnections: The number of active connections that are currently in use. NumberOfFreeConnections: The number of connections available for use in the connection pools.

like image 168
bodee Avatar answered Oct 12 '22 23:10

bodee