Wednesday, February 10, 2010

WCF and Performance Counters

To enable counters for WCF services add following line


<diagnostics performanceCounters="All" />


at the xml element


<system.serviceModel>


in web.config file or in machine config file (for all services on your machine).

To see counters data start from command line:

perfmon.exe


Open performance monitor and add counter from: ServiceModelService