Hi,
I have a WCF service in IIS7 that communicates with a winform application over TCP(WAS), now I need to monitor the performance.
I have added this to the web.config file:
<system.serviceModel>
<diagnostics performanceCounters="All" />
After opening the Performance Monitor I run a couple of tests with my winform to make sure that the service is activated.
I then open the Performance Monitor (live), right click and add counters. I expand the ServiceModelService 4.0.0.0 and select Calls and Calls Duration, I also select my service(svc) that is stated in the Instance of selected object listbox and click Add button.
When selecting Calls and Calls Duration under ServiceModelOperation 4.0.0.0 there is however no Instance or operation to select? The same goes for ServiceModelEndpoint 4.0.0.0?
When clicking Ok two counters will be added(ServiceModelService).
I then click unfreeze display and start my winform application that makes a couple of calls, however I do not see anything in the Performance Monitor. I have tried to right-click on one of the performance counters and select “Scale Selected Counter” but this does nothing?
The goal is simply to see how well the WCF service performs (speed, duration, amount, connections and so on) and it would also be great to check individual operations.
Please help!
Note : this is the article I have tried to follow : http://dkochnev.blogspot.com/2011/06/wcf-framework-40-monitoring-service.html
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:
You may want to check out these articles which can guide you on how to use the performance counters for WCF services: