470,636 Members | 1,616 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 470,636 developers. It's quick & easy.

Can't add custom perfoprmance monitor instance


I'm having problem adding custom performance counter INSTANCE in an
ASP.NET web service whose miltiple instances could run hosted by different
IIS AppPools on same machine. I can update my custom performance counters
WITHOUT instances just fine but when I try to specify instance name then the
counter is not updated at all and there is no error thrown also. I've
followed MSDN example to specify instance name:

// Assumes category and counter have been created.
System.Diagnostics.PerformanceCounter myCounter =
new System.Diagnostics.PerformanceCounter(
"cat","counter","instance1", false);
// Set the raw value to automatically create instance1.
myCounter.RawValue = 100;

But it doesn't work in my ASP.NET web service :( If I don't specify instance
name, it works just fine.

Has anybody seen this ?

Thanks in advance and regards


Jul 21 '05 #1
0 1003

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

2 posts views Thread by xcb7226 | last post: by
3 posts views Thread by hikums | last post: by
2 posts views Thread by Claire | last post: by
reply views Thread by Navin Mishra | last post: by
1 post views Thread by ebusiness | last post: by
1 post views Thread by Korara | last post: by
reply views Thread by Stoney L | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.