title: How to work with Performance counters and WCF service in IIS?
body: <p><strong>Hi,</strong></p>
  
  <p>I have a WCF service in IIS7 that communicates with a winform application over TCP(WAS), now I need to monitor the performance.</p>
  
  <p>I have added this to the web.config file:</p>
  
  <pre><code>  &lt;system.serviceModel&gt;
      &lt;diagnostics performanceCounters="All" /&gt;
  </code></pre>
  
  <p>After opening the Performance Monitor I run a couple of tests with my winform to make sure that the service is activated.</p>
  
  <p>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.</p>
  
  <p>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?</p>
  
  <p>When clicking Ok two counters will be added(ServiceModelService).</p>
  
  <p>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?</p>
  
  <p>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.</p>
  
  <p><strong>Please help!</strong></p>
  
  <p>Note : this is the article I have tried to follow : <a href="http://dkochnev.blogspot.com/2011/06/wcf-framework-40-monitoring-service.html" rel="noreferrer">http://dkochnev.blogspot.com/2011/06/wcf-framework-40-monitoring-service.html</a></p>