Sub topic 3
Monitoring with Task Manager, Resource Monitor and Performance Monitor
This chapter assumes you can navigate Windows, open an elevated Command Prompt, and recognize hardware terms such as RAM, CPU, disk and network adapter. It also assumes you know the CompTIA troubleshooting steps from the previous chapter. Monitoring tools supply the evidence for the "establish a theory of probable cause" step. Without evidence, you are guessing.
Why three tools
Windows includes three monitoring tools that answer questions at different depths.
| Tool | Best for | Time view | How to open |
|---|---|---|---|
| Task Manager | Quick triage: which process is hungry, what starts at boot | Live, last 60 seconds in graphs | Ctrl+Shift+Esc, or right-click the taskbar |
| Resource Monitor | Finding which file, port or handle a process is using | Live, per process detail | `resmon`, or Performance tab, Open Resource Monitor |
| Performance Monitor | Measuring trends and comparing against a baseline | Live or logged over hours or days | `perfmon` |
A common workflow starts with Task Manager to spot the symptom, moves to Resource Monitor to find the cause, and uses Performance Monitor when the problem is intermittent or needs proof over time.
Task Manager
Task Manager is the first stop. Its tabs matter for the exam.
- Processes lists apps and background processes with CPU, memory, disk and network columns. Click a column header to sort. Right-click a process to end its task, open its file location, or search online.
- Performance shows live graphs for CPU, memory, disk, Ethernet or Wi-Fi, and GPU. The CPU view shows utilization, speed, number of processes, threads and uptime. The memory view shows how much RAM is in use, available, and committed.
- App history shows cumulative resource use for Microsoft Store apps.
- Startup lists programs that run at sign-in, with a "Startup impact" rating. Right-click an entry and choose Disable to stop it from launching. Disabling does not uninstall it.
- Users shows resource use per signed-in user, which helps on shared machines or when a Remote Desktop session is consuming resources.
- Details shows the classic process list with process IDs (PIDs), user names and priority. You can set priority and CPU affinity here.
- Services lists services and their state, with a shortcut to the Services console.
What to look for
- CPU pinned near 100 percent with one process at the top points to a runaway application or a scan in progress. If the top entry is
SystemorAntimalware Service Executable, check for an active scan or update. - Memory near 100 percent with high disk activity suggests the system is paging heavily. The next chapters on memory and performance return to this.
- Disk at 100 percent on a mechanical drive often means indexing, updates or a failing drive. A disk that stays busy while "Active time" is high but transfer rates are low is a classic sign of a struggling drive.
- Network saturation from an unexpected process may indicate an update download, cloud sync, or malware.
- An app labeled "Not responding" can be ended with End task. Unsaved data is lost, so wait briefly first if the app may be busy.
Resource Monitor
Resource Monitor shows the same four resources as Task Manager but with detail Task Manager hides. Its tabs are Overview, CPU, Memory, Disk and Network.
- CPU tab: lists processes with their threads and "Average CPU." The "Associated Handles" and "Associated Modules" panes show which files and DLLs a process has open. Right-click a process and choose Analyze Wait Chain on a hung application to see which process or resource it is waiting for. This is useful for unresponsive programs.
- Memory tab: breaks memory into hard faults per second, committed, working set, shareable and private. A bar at the bottom shows memory split into Hardware Reserved, In Use, Modified, Standby and Free. Many hard faults per second means the system is reading from the page file because RAM is short.
- Disk tab: shows which files each process reads and writes, with response time. High response time (hundreds of milliseconds) means the disk is a bottleneck.
- Network tab: shows processes with network activity, TCP connections, and listening ports. Use it to see which process owns a connection.
A practical use is a locked file. If Windows says a file is in use, search the Associated Handles box on the CPU tab for the file name. The result names the process holding it.
Performance Monitor
Performance Monitor (perfmon) measures system behavior with counters, each of which belongs to an object (a resource category). Examples include Processor\% Processor Time, Memory\Available MBytes, PhysicalDisk\Avg. Disk Queue Length and Network Interface\Bytes Total/sec.
Its main parts:
- Performance Monitor (the monitoring tool): a live graph of chosen counters.
- Data Collector Sets: saved groups of counters, traces and configuration that run on demand or on a schedule, and write logs to disk. Windows includes built-in sets, including System Diagnostics and System Performance.
- Reports: the output of a data collector set, with warnings and a summary of findings.
Baselines
A baseline is a set of measurements taken while the system is healthy. Capturing one gives you a reference. If memory use is normally 40 percent and now sits at 90 percent, you have a measurable change. Without a baseline, "slow" has no definition.
Counters worth memorizing
| Counter | Concern when |
|---|---|
| `Processor\% Processor Time` | Sustained above about 85 percent |
| `Memory\Available MBytes` | Consistently very low, with high paging |
| `Memory\Pages/sec` | Sustained high values, which indicate paging |
| `PhysicalDisk\% Disk Time` | Near 100 percent for long periods |
| `PhysicalDisk\Avg. Disk Queue Length` | Consistently above 2 per spindle |
| `Network Interface\Bytes Total/sec` | Close to the link speed |
Thresholds are guidelines. Compare to your baseline first.
Capturing counters from the command line
You can also read counters in PowerShell. This is useful in scripts or over a remote session.
Get-Counter -Counter '\Processor(_Total)\% Processor Time','\Memory\Available MBytes' -SampleInterval 2 -MaxSamples 5This takes five samples, two seconds apart, of total CPU use and free memory. A related text-based tool is typeperf.
Related command-line views
Task Manager's data is also available at the prompt. These are quick when the GUI is unresponsive.
tasklist /svc
taskkill /PID 1234 /Ftasklist /svc lists processes with the services each hosts. taskkill /PID 1234 /F forcibly ends the process with PID 1234, replacing 1234 with the PID you found.
Worked example: slow computer after lunch
A user reports the PC is very slow, and it was fine this morning.
- Identify the problem. Ask what changed. The user installed a sync client at noon.
- Gather evidence in Task Manager. On the Processes tab, sort by Disk. The sync client sits at the top with high disk use, and the Performance tab shows disk at 100 percent.
- Go deeper in Resource Monitor. The Disk tab shows the client reading thousands of small files, with response times above 500 ms.
- Theory. The initial sync of a large folder is saturating a slow disk.
- Test and fix. Pause the sync and confirm the disk drops. Schedule syncing for off hours or limit it to a smaller folder.
- Verify and document. Confirm normal response, and record the cause and fix.
If the disk stayed busy after the sync stopped, the next theory would be a failing drive or a background scan, which leads into the file repair and malware chapters.
Common mistakes
- Disabling a startup entry and assuming the program is removed. It only stops automatic launch.
- Ending a process without checking its file location.
- Treating one CPU spike as a problem. Brief spikes are normal. Look for sustained values.
- Judging a counter without a baseline.
- Forgetting that Task Manager's memory graph includes cached data. High "In use" memory with a large Standby amount is not necessarily a shortage. Low Available memory combined with high hard faults is.
- Running Performance Monitor only after a problem happens. Intermittent faults need logging that was already running.
Exercise
A user says a spreadsheet will not save because the file "is open in another program," but no program appears to have it open. Which tool do you use to find the process holding the file, and where in that tool do you look?
Show answer
Use Resource Monitor. On the CPU tab, type the file name into the Search Handles box under Associated Handles. The result lists the process that holds the file, which you can then close or end.
Exercise
A server is slow only between 2 a.m. and 3 a.m., when no one is present to watch it. Which Performance Monitor feature captures evidence, and what should you compare the results against?
Show answer
Create a Data Collector Set with the relevant counters (such as processor, memory, disk queue length and network bytes) and schedule it to run during that hour. Compare the resulting log or report against a baseline captured when the server was healthy.
Exercise
After installing new software, a laptop takes much longer to reach a usable desktop after sign-in. Which Task Manager tab shows what launches at sign-in, and what action reduces the delay without uninstalling anything?
Show answer
The Startup tab. Select the high-impact entries you do not need and choose Disable, which stops them from launching at sign-in but leaves them installed.