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

Filed under:
|
|
|

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

  1. They are shared global
  2. Writing requires locks to ensure Synchronization
  3. Reading Some times requires locks too.
  4. 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

  1. how many times its being hit overall and within a certain period
  2. 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

Related posts about server

Related posts about .NET