I need to determine how many users are connected to a WCF service. I am using the NetTcpBinding.
Thank you.
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:
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With