Sub topic 15
Performance Monitor and Resource Monitor
This chapter assumes you know how to open Task Manager and read its Performance tab. It also assumes you know what CPU, memory, disk, and network usage mean. Task Manager shows a quick snapshot. Performance Monitor and Resource Monitor go deeper, and the A+ Core 2 exam expects you to know when to use each one.
Performance Monitor
Performance Monitor (perfmon) graphs counters. A counter is a single measurement, such as the percentage of time the processor is busy. Open it by running perfmon or perfmon.msc from the Run box. It is also a snap-in in Computer Management under System Tools, Performance.
Performance Monitor has three main parts:
- Monitoring Tools, Performance Monitor draws live counters on a line graph.
- Data Collector Sets group counters, event traces, and configuration data. You can run a set on demand or on a schedule, and it saves its results to a log.
- Reports show the output of the collector sets you have run.
To add a counter, click the green plus sign, pick an object such as Processor or Memory, choose a counter, and click Add.
| Counter | What it tells you | Warning sign |
|---|---|---|
| Processor, % Processor Time | How busy the CPU is | Stays near 100% |
| Memory, Available MBytes | RAM still free | Very low and falling |
| Memory, Pages/sec | How often Windows reads or writes the page file | Constantly high |
| PhysicalDisk, % Disk Time | How busy a drive is | Stays near 100% |
Run a collector set to capture a baseline. A baseline is a record of normal behavior on a healthy system. Later, you compare current readings against it to see what changed.
Resource Monitor
Resource Monitor (resmon) is a live view of how processes use resources right now. Open it by running resmon, or from the Performance tab in Task Manager by choosing Open Resource Monitor.
It has five tabs: Overview, CPU, Memory, Disk, and Network. Each tab lists processes with details Task Manager does not show:
- CPU: the services and handles a process uses, and which process is waiting on another.
- Memory: hard faults per second, plus a breakdown of in-use, modified, standby, and free memory.
- Disk: which files each process is reading or writing, and the response time of each disk.
- Network: which processes are talking to which remote addresses and ports, and how much data they send.
You can tick the box next to a process to filter every table to that process. You can also right-click a process and choose Analyze Wait Chain to find out why a program has stopped responding.
Choosing the right tool
Use Resource Monitor when a system is slow now and you need the culprit. For example, the disk is at 100%, and the Disk tab shows one process writing heavily to a single file. Use Performance Monitor when the problem comes and goes, or when you must prove that a change helped. Log counters to a collector set over several hours, then read the report.
Exercise
A user says their PC slows down every afternoon, but it is fine when you look at it in the morning. Which tool should you use to find the cause, and why?
Show answer
Performance Monitor. Create a Data Collector Set with CPU, memory, and disk counters and let it run through the afternoon. Then review the log in Reports and compare it with a baseline. Resource Monitor only shows live activity, so it would miss the slowdown unless you happened to be watching.
Exercise
Which Resource Monitor tab would you open to find which process is writing to a particular file?
Show answer
The Disk tab. It lists the files each process is reading or writing, along with response times.