Performance Counters in Server Development
- by Mubashar Ahmad
Dear Gurus
All you be agree with the value and worth of Performance Counters while developing and maintaining a server kind application
I would like to know what is the best way to implement those, Specifically using C#?
Usually performance counters have the following attributes
They are shared global
Writing requires locks to ensure Synchronization
Reading Some times requires locks too.
Is it better to update them Asynchronously and what is the best way to make them so. (I am planning to use the ThreadPool.QueuWorketItem function, pls tell me you opinion on this too.)
If my question seems a bit vague can you just take the example of a HelloWorld Wcf service and i wanted to know following
how many times its being hit overall and within a certain period
Average/min/max Response Times overall and within a certain period.
Moreover if any one knows about the Specialized way provided by DotNet or WCF then please let me know as well.