Common Performance Counters

I l @ ve RuBoard

Virtually any application will need the counters listed in Table D-1. They are not managed, and they apply to any part of your system that you're monitoring. You can consider this a set of general health indicators, but they can also be useful in performance and stress situations for tracking down leaks, poorly written code, and other development bogeymen.

Table D-1. Performance Counters

Category

Counter

Description

Processor

% Processor Time

Indicates how much work the machine is doing.

Memory

% Committed Bytes In Use

Indicates the memory resources being consumed.

Thread

Context Switches/Sec

Helps put the % Processor Time counter in perspective. A context switch happens when CPU execution switches from one thread to another. A high rate of context switching might indicate that the machine is spinning between threads without doing any real work. This might indicate performance problems related to COM Interop, a bad threading implementation, and so forth.

Process

% Processor Time

This counter allows you to single out specific processes and how much processor time they're consuming.

.NET CLR LocksAnd ­Threads

Total # of Contentions

Are you overusing a shared resource? This counter will help you figure out if there is a problem with shared resources protected by a thread synchronization construct. For example, have you implemented a mutex instead of a ReaderWriterLock ? This counter might indicate that your threading model needs work. Remember that there is always some contention in a system.

Process

Private Bytes

Helps determine whether there are memory leaks in your application.

Process

Working Set

I l @ ve RuBoard


Designing Enterprise Applications with Microsoft Visual Basic .NET
Designing Enterprise Applications with Microsoft Visual Basic .NET (Pro-Developer)
ISBN: 073561721X
EAN: 2147483647
Year: 2002
Pages: 103

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net