开发者

How do I get the .NET Data Provider for SqlServer counter to show up in Perfmon

Has anybody managed to get the ".NET Data Provider for SqlServer" to actually work within perfmon.ex开发者_如何转开发e.

I have a .NET app that uses nhibernate to interact with sql server 2005 db. All I want to do is to view the NumberOfActiveConnectionPools, NumberOfActiveConnections and the NumberOfFreeConnections within perfmon.exe

How exactly I get this to work?


There is an app.config setting to enable these counters. Via MSDN:

<system.diagnostics>
  <switches>
    <add name="ConnectionPoolPerformanceCounterDetail"
         value="4"/>
  </switches>
</system.diagnostics>
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜