Amitabh
Amitabh

Reputation: 61337

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

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 CLR 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

Upvotes: 2

Views: 2919

Answers (5)

Nick Westgate
Nick Westgate

Reputation: 3273

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

  • PercentOfMaxCalls
  • PercentOfMaxSessions
  • PercentOfMaxInstances
  • CallsOutstanding

Upvotes: 0

Jack Ukleja
Jack Ukleja

Reputation: 13521

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.

Upvotes: 2

John Saunders
John Saunders

Reputation: 161831

What about the various WCF counters?

Upvotes: 2

Scott Stafford
Scott Stafford

Reputation: 44828

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

Upvotes: 1

Matthew Steeples
Matthew Steeples

Reputation: 8088

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

Upvotes: 1

Related Questions