Summary

  • Performance counters come in two types: custom and system-defined.

  • Custom counters are defined by an application and their values are controlled by that application.

  • System-defined counters exist under the Process object and are useful for tracking down and monitoring issues in any application.

  • Custom counters are nearly limitless in their use and are defined by the developer.

  • Adding counters to a service is easy, but make sure that the values of the counters you expose are correct and useful. Also make sure that the code required to update these values is not so complex that it adds too much overhead to the service.

  • Performance counters are read by consumers such as Task Manager and Perfmon.

  • Perfmon is a generic performance counter consumer ...

Get Programming Windows® Services with Microsoft® Visual Basic® 2008 now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.