How to Use the Performance Monitor (PerfMon) Data Collector Sets in Windows 11

Beyond the Task Manager

When a Windows 11 PC starts lagging, most users hit Ctrl + Shift + Esc to open the Task Manager and stare at the CPU usage graphs. While the Task Manager is excellent for killing a frozen application, it is terrible for diagnosing chronic performance issues. If a server inexplicably spikes to 100% disk usage at 3:00 AM every night, staring at the live Task Manager won’t help you catch the culprit.

For deep, historical, and automated performance tracking, Windows includes the Performance Monitor (PerfMon). The most powerful feature within PerfMon is Data Collector Sets. These allow you to record hundreds of highly specific system metrics in the background over hours or days, saving the data to a report that you can analyze after the fact.

Step 1: Open the Performance Monitor

  1. Press the Windows Key, type perfmon, and press Enter.
  2. The Performance Monitor window will open, displaying a live graph of your CPU usage.

Step 2: Create a Custom Data Collector Set

We want to track specific metrics in the background. In this scenario, let’s track a suspected memory leak by monitoring RAM usage and Page Faults.

  1. In the left-hand navigation pane, expand Data Collector Sets.
  2. Right-click on User Defined.
  3. Select New > Data Collector Set.
  4. Name the set something descriptive, like “Memory Leak Tracker”.
  5. Select the radial button for Create manually (Advanced) and click Next.
  6. Under “Create data logs,” check the box for Performance counter and click Next.

Step 3: Choose Your Counters

Now you must tell Windows exactly which sensors to track.

  1. Click the Add… button. A massive list of system counters will appear.
  2. Scroll down the list and expand Memory.
  3. Click on Available MBytes, then click the Add >> button below it to move it to the right pane.
  4. Scroll back up and expand Process.
  5. Click on Private Bytes. In the “Instances of selected object” box below, select <All instances>, then click the Add >> button. (This will track the RAM usage of every single application running).
  6. Click OK to close the Add Counters window.
  7. Set the Sample interval. By default, it is 15 seconds. If you are tracking a long-term leak, change this to 1 or 5 minutes so the resulting log file doesn’t become gigabytes in size.
  8. Click Next, accept the default save location (usually %systemdrive%\PerfLogs), and click Finish.

Step 4: Running the Collector Set

Your custom tracker is now ready, but it is not running yet.

  1. In the left pane, click on User Defined to see your new “Memory Leak Tracker” in the middle pane.
  2. Right-click the tracker and select Start.
  3. The icon will change to show a small green play button. The Performance Monitor is now silently logging data in the background. You can close the PerfMon window entirely, and the logging will continue.

Step 5: Stopping and Analyzing the Report

After letting the collector run during the period where the lag usually occurs (e.g., overnight), you need to stop it and read the data.

  1. Open PerfMon again, navigate to User Defined, right-click your tracker, and select Stop.
  2. To view the data, expand the Reports section in the left navigation pane.
  3. Expand User Defined, then expand your “Memory Leak Tracker”.
  4. Click on the newly generated report file (it will be named with the date and time of the run).

The right pane will now display a static, historical graph of the exact timeframe you recorded. You can click the “Highlight” button in the toolbar to isolate specific applications (processes) and visually see which program steadily consumed RAM over the 12-hour recording period, immediately identifying the source of your memory leak.

Conclusion

Task Manager tells you what is happening right now, but PerfMon Data Collector Sets tell you what happened while you were asleep. By setting up custom, background logging, IT administrators can capture transient performance spikes and diagnose chronic instability with mathematical precision.

RELATED POSTS

  • How to Use Windows 11 BitLocker to Encrypt Your Drives
  • How to Use the Windows 11 diskshadow Command to Manage VSS Snapshots
  • How to Configure Point-to-Site VPN in Microsoft Azure using Certificate Authentication
  • How to Configure Windows Server Storage Spaces Tiering for Automated SSD Caching
  • How to Disable Copilot in Windows 11
  • Get the best tech tips delivered straight to your inbox.

    Join thousands of readers mastering Apple, Google, Microsoft, and Linux.