Performance Counters in Server Development
Posted
by Mubashar Ahmad
on Stack Overflow
See other posts from Stack Overflow
or by Mubashar Ahmad
Published on 2010-04-01T05:35:33Z
Indexed on
2010/04/01
5:43 UTC
Read the original article
Hit count: 325
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.
© Stack Overflow or respective owner