Hi,
I registered some custom perf counters that i want to use in my app
(all of type NumberOfItems32). I added them under the same category
name but different counter names...
Same code work perfect in a test c# app, but when i put it on a web
app, there's a strange issue -- In perfmon, i only see one counter
being affected (rest are 0)... and in my code I made a test page to
just show the RawValue for each counter -- that page shows each
PerformanceCounter object has the same value (it should not... i also
have internal counter variables i use for a sanity check).
The PerformanceCounter objects are defined as static like so:
internal static PerformanceCounter pcCurrentRequests = new
PerformanceCounter("Amdocs SIMS HTTP Server","TotalRequests",false);
internal static PerformanceCounter pcCurrentFullscans = new
PerformanceCounter("Amdocs SIMS HTTP Server", "FullscanRequests",
false);
internal static PerformanceCounter pcCurrentFullscans2 = new
PerformanceCounter("Amdocs SIMS HTTP Server", "Fullscan2Requests",
false);
internal static PerformanceCounter pcCurrentHeartbeat = new
PerformanceCounter("Amdocs SIMS HTTP Server", "HeartbeatRequests",
false);
internal static PerformanceCounter pcCurrentGetConfig = new
PerformanceCounter("Amdocs SIMS HTTP Server", "GetConfigRequests",
false);
In the Application_Start method i set the initial RawValue to 0.... I
tried to set each object to a different value, but it just takes the
last and sets on all of them....
anyone experienced this?