开发者

What counters (PerfMon) to add to find performance issues in a C# WCF web service?

开发者 https://www.devze.com 2022-12-20 03:46 出处:网络
I am looking into Performance issues of an Asp.Net 2.0 Web Site which uses a WCF service. On the Web and the WCF Host Service I am adding some Perf Counters to analyse the application behaviour. What

I am looking into Performance issues of an Asp.Net 2.0 Web Site which uses a WCF service. On the Web and the WCF Host Service I am adding some Perf Counters to analyse the application behaviour. What are the Performance Counters which will be useful. I have created a partial list. Can someone suggest me if I am missing any important counter.

.Ner CLR Data : Peak Pooled Connections, Total # Failed Commands,Total # Failed Connects

.Net CLR Exceptions: Total # exceptions thrown,

.Net C开发者_开发问答LR Locks and Threads: Total # of Contentions

.Net Memory: # Bytes in all heap

.Net CLR Loading : Rate of class loaded

Asp.Net 2.0: Requests Current, State Server Sessions Active, State Server Sessions Total, Worker Process Restarts, Worker Process Running


What about the various WCF counters?


WCF provides its own performance counters for services.

Enable it on your services app.config using:

<configuration>
    <system.serviceModel>
        <diagnostics performanceCounters="All" />
    </system.serviceModel>
</configuration>

The most useful counters will be stuff like Calls Duration, Calls Outstanding, Calls Failed etc.


You may also want to monitor the number of garbage collections that occur, and the processor utilisation on the server


If there is a SQL Server database, add SQL Statistics / Batch Queries/sec.


This post about the handiest performance counters was available when the question was asked.

  • PercentOfMaxCalls
  • PercentOfMaxSessions
  • PercentOfMaxInstances
  • CallsOutstanding
0

精彩评论

暂无评论...
验证码 换一张
取 消