Use performance counter in self host web application Use performance counter in self host web application asp.net asp.net

Use performance counter in self host web application


I see you mentioned diagnostics, these are what I used in diagnostics:

<PerformanceCounterConfiguration counterSpecifier="\Asp.net\Request Execution Time" sampleRate="PT1M" />                <PerformanceCounterConfiguration counterSpecifier="\ASP.net\Requests Rejected" sampleRate="PT1M" />                <PerformanceCounterConfiguration counterSpecifier="\Web Service(_Total)\Current Connections" sampleRate="PT1M" />                <PerformanceCounterConfiguration counterSpecifier="\Web Service(_Total)\Connection Attempts/sec" sampleRate="PT1M" />

What I did, was go into perfmon and right clicked "add counter" on my dev machine and then typed the names of what looked intersesting to me into cmd prompt like this:

typeperf "\Web Service(_Total)\Connection Attempts/sec"

I was able to test many out to see what was useful.

hope it helps,

=Devon