Wednesday, February 10, 2010

WCF and Performance Counters

To enable counters for WCF services add following line

<diagnostics performanceCounters="All" />

at the xml element


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

To see counters data start from command line:


Open performance monitor and add counter from: ServiceModelService