Skip to content

Commit bcd6b43

Browse files
Merge pull request #2371 from YongRhee-MSFT/docs-editor/troubleshoot-av-performance-is-1736372333
Update troubleshoot-av-performance-issues-with-procmon.md
2 parents 6ca1a99 + 8dea60b commit bcd6b43

File tree

1 file changed

+42
-50
lines changed

1 file changed

+42
-50
lines changed

defender-endpoint/troubleshoot-av-performance-issues-with-procmon.md

Lines changed: 42 additions & 50 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ ms.reviewer: yonghree
77
manager: deniseb
88
ms.service: defender-endpoint
99
ms.topic: troubleshooting-general
10-
ms.date: 01/06/2025
10+
ms.date: 01/10/2025
1111
ms.subservice: ngp
1212
ms.localizationpriority: medium
1313
ms.collection:
@@ -21,6 +21,12 @@ ai-usage: human-only
2121

2222
# Troubleshoot Microsoft Defender Antivirus performance issues with Process Monitor
2323

24+
> [!TIP]
25+
> First, review common reasons for performance issues, such as high CPU usage. See **[Troubleshoot performance issues related to Microsoft Defender Antivirus real-time protection (rtp) or scans (scheduled or on-demand](/defender-endpoint/troubleshoot-performance-issues)**.
26+
> Then, run the **[Microsoft Defender Antivirus Performance Analyzer](/defender-endpoint/tune-performance-defender-antivirus)**This tool will help identify the cause of high CPU usage in Microsoft Defender Antivirus, whether it's the Antimalware Service Executable, the Microsoft Defender Antivirus service, or MsMpEng.exe.
27+
>If the Microsoft Defender Antivirus Performance Analyzer doesn't identify the root cause of the high CPU utilization, proceed with running **[Processor Monitor](/defender-endpoint/troubleshoot-av-performance-issues-with-procmon)**.
28+
>The final tool in your toolkit to run is [Windows Performance Recorder UI (WPRUI) or Windows Performance Recorded (WPR command-line)](/defender-endpoint/troubleshoot-av-performance-issues-with-wprui).
29+
2430
## Capture process logs using Process Monitor
2531

2632
Process Monitor (ProcMon) is an advanced monitoring tool that provides real-time data on processes. It can be used to capture performance issues, such as high CPU usage, and to monitor application compatibility scenarios as they occur.
@@ -33,9 +39,9 @@ There are two ways to capture a Process Monitor (ProcMon) trace:
3339

3440
### Using the MDE Client Analyzer
3541

36-
1. Download the [MDE Client Analyzer ](/defender-endpoint/download-client-analyzer).
42+
1. Download the [MDE Client Analyzer](/defender-endpoint/download-client-analyzer).
3743

38-
1. Run the MDE Client Analyzer using [Live Response or locally ](/defender-endpoint/run-analyzer-windows).
44+
1. Run the MDE Client Analyzer using [Live Response or locally](/defender-endpoint/run-analyzer-windows).
3945

4046
> [!TIP]
4147
> Before starting the trace, please make sure that the issue is reproducible. Additionally, close any applications that do not contribute to the reproduction of the issue.
@@ -50,84 +56,70 @@ There are two ways to capture a Process Monitor (ProcMon) trace:
5056

5157
1. Download [Process Monitor v3.89](/sysinternals/downloads/procmon) to a folder like `C:\temp`.
5258

53-
1. To remove the file's mark of the web:
59+
2. To remove the file's mark of the web:
5460

5561
1. Right-click **ProcessMonitor.zip** and select **Properties**.
56-
62+
5763
1. Under the *General* tab, look for *Security*.
58-
64+
5965
1. Check the box beside **Unblock**.
60-
66+
6167
1. Select **Apply**.
62-
68+
6369
![Screenshot showing the Remove MOTW page.](media/procmon-motw.png)
6470

65-
1. Unzip the file in `C:\temp` so that the folder path is `C:\temp\ProcessMonitor`.
71+
3. Unzip the file in `C:\temp` so that the folder path is `C:\temp\ProcessMonitor`.
6672

67-
1. Copy **ProcMon.exe** to the Windows client or Windows server you're troubleshooting.
73+
4. Copy **ProcMon.exe** to the Windows client or Windows server you're troubleshooting.
6874

69-
> [!TIP]
75+
> [!TIP]
7076
> Before running ProcMon, make sure all other applications not related to the high CPU usage issue are closed. Taking this step helps to minimize the number of processes to check.
7177
72-
1. You can launch ProcMon in two ways.
78+
5. You can launch ProcMon in two ways.
7379

7480
1. Right-click **ProcMon.exe** and select **Run as administrator**.
75-
76-
Since logging starts automatically, stop the capture by selecting the magnifying glass icon or pressing **Ctrl+E**.
77-
81+
82+
- Since logging starts automatically, stop the capture by selecting the magnifying glass icon or pressing **Ctrl+E**.
83+
7884
![Screenshot showing the magnifying glass icon.](media/procmon-magglass.png)
79-
80-
To confirm the capture has stopped, look for a red X on the magnifying glass icon.
81-
85+
86+
2. To confirm the capture has stopped, look for a red X on the magnifying glass icon.
87+
8288
![Screenshot showing a red slash.](media/procmon-magglass-stop.png)
83-
84-
Next, to clear the earlier capture, select the eraser icon.
85-
86-
![Screenshot showing the clear icon](media/procmon-eraser-clear.png)
87-
88-
Or use the keyboard shortcut **Ctrl+X**.
89-
90-
1. Run the **command line** as admin, then from the Process Monitor path, run:
91-
89+
![Screenshot showing the clear icon.](media/procmon-eraser-clear.png)
90+
91+
3. Run the **command line** as admin, then from the Process Monitor path, run:
92+
9293
![Screenshot showing the cmd procmon.](media/cmd-procmon.png)
93-
94-
ConsoleEdit development language
95-
96-
97-
```
98-
Procmon.exe /AcceptEula /Noconnect /Profiling
99-
```
100-
94+
10195
> [!TIP]
10296
> Make the ProcMon window as small as possible when capturing data so you can easily start and stop the trace.
103-
104-
![Screenshot showing the page with Procmon minimized.](media/procmon-minimize.png)
105-
106-
1. After completing step 6, set filters by selecting **OK**. You can filter the results after the capture is complete.
97+
> ![Screenshot showing the page with Procmon minimized.](media/procmon-minimize.png)
98+
99+
6. After completing step 6, set filters by selecting **OK**. You can filter the results after the capture is complete.
107100

108101
![Screenshot showing the page where System Exclude is chosen as the Filter out Process Name.](media/procmon-filter-options.png)
109102

110-
1. To start the capture, select the magnifying glass icon again.
103+
7. To start the capture, select the magnifying glass icon again.
111104

112-
1. Reproduce the problem.
105+
8. Reproduce the problem.
113106

114-
> [!TIP]
107+
> [!TIP]
115108
> Wait for the problem to be reproduced, then note the timestamp when the trace begins.
116109
117-
1. After capturing two to four minutes of process activity during high CPU usage, stop the capture by clicking the magnifying glass icon.
110+
9. After capturing two to four minutes of process activity during high CPU usage, stop the capture by clicking the magnifying glass icon.
118111

119-
1. To save the capture with a unique name in the `.pml` format, go to **File** then click **Save...**. Ensure you select the radio buttons **All events** and **Native Process Monitor Format (PML)**.
112+
10. To save the capture with a unique name in the `.pml` format, go to **File** then click **Save...**. Ensure you select the radio buttons **All events** and **Native Process Monitor Format (PML)**.
120113

121-
![Screenshot showing the save settings page](media/procmon-savesettings1.png)
114+
![Screenshot showing the save settings page.](media/procmon-savesettings1.png)
122115

123-
1. For better tracking, change the default path from `C:\temp\ProcessMonitor\LogFile.PML` to `C:\temp\ProcessMonitor\%ComputerName%_LogFile_MMDDYEAR_Repro_of_issue.PML` where:
116+
11. For better tracking, change the default path from `C:\temp\ProcessMonitor\LogFile.PML` to `C:\temp\ProcessMonitor\%ComputerName%_LogFile_MMDDYEAR_Repro_of_issue.PML` where:
124117

125118
- `%ComputerName%` is the device name
126119
- `MMDDYEAR` is the month, day, and year
127120
- `Repro_of_issue` is the name of the issue you're trying to reproduce
128-
129-
> [!TIP]
130-
> If you have a working system, you might want to get a sample log to compare.
131121

132-
1. Zip the `.pml` file and submit it to Microsoft Support.
122+
> [!TIP]
123+
> If you have a working system, you might want to get a sample log to compare.
133124
125+
12. Zip the `.pml` file and submit it to Microsoft Support.

0 commit comments

Comments
 (0)