NGWS SDK Documentation  

This is preliminary documentation and subject to change.
To comment on this topic, please send us email at ngwssdk@microsoft.com. Thanks!

Performance Counter Lifetime

It is important to understand that performance counter values are values rather than entries – when you write a value to a performance counter, you are not making a permanent entry in the counter as you do when you write an entry to an event log. Rather, performance counter values are transitory. When the last PerformanceCounter component to reference a particular system counter is disposed of, the counter resets itself to zero.

There are several ways you can manage the lifetime of a performance counter if you want to retain values for a longer period of time than the default counter behavior allows:

See Also

Setting Up the Performance Counter Service | Introduction to Monitoring Performance Thresholds