Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to find out how many concurrent connections to WCF service exists?

Tags:

.net

wcf

I need to determine how many users are connected to a WCF service. I am using the NetTcpBinding.

Thank you.

like image 645
ericx Avatar asked Jan 16 '10 17:01

ericx


1 Answers

WCF services includes performance counters that you can track with the Windows Performance Monitor (Perfmon.exe). You can launch this from the Administrative Tools in Windows Server 2003.

Performance counters can be enabled from the diagnostics section of the .config file for the service, as shown in the following sample configuration:

<configuration>
  <system.serviceModel>
    <diagnostics performanceCounters="All" /> 
  </system.serviceModel>
</configuration>

You may want to check out these articles which can guide you on how to use the performance counters for WCF services:

  • MSDN - WCF Performance Counters
  • MSDN - Using Performance Counters
  • How to use performance counters to diagnose performance of WCF applications
  • Sajay's Blog - WCF Performance Counters
like image 178
Daniel Vassallo Avatar answered Oct 22 '22 06:10

Daniel Vassallo