How to import an XML file into Performance Monitor

Overview 

This is a two-part series on how to troubleshoot performance issues. 

This article explains how to import an XML file into Performance Monitor (Perfmon). 

Part 1 of the series is for those who have general performance issues and want to collect performance data in their environment which can be sent to a Support Engineer for analysis. For the specific steps, see Collect a Windows ETW and Xperf trace. 

Why would we want to import an xml file?

There may come a time where you need to import an xml file given to you by a support person into Windows Performance Monitor (Perfmon).  

There are a couple of reason why you want to do this.  

  1. When you need a very precise targeted data capture of the impacted system. 

  2. When you want to create a baseline of a known good system. 

Note:

The xml file is a template that defines the performance metrics to capture and sometimes time intervals, file format for the results file, etc.

To create an import of a XML file to Perfmon, do the following steps: 

  1. Open Perfmon by navigating to Computer Management > Performance or from the Run command, type Perfmon. 

  2. Expand Performance and go to Data Collector Sets then User Defined. 

  3. Right-click the User Defined folder then select New > Data Collector Set. 

  4. Give it a name and leave the Create from a template selected. Click Next. 

  5. Click Browse and then download the XML file from the attachment section in this article. 

  6. Click through the wizard and then select the top radio button Open properties for this data collector set. 

  7. Click Finish.

    Important:

    If you want to tweak anything about this collection, now is the time to do it. Most of the configuration has been done for you though. 200 megabytes (MB) rolling logs created in sequence with host name in the file name. This collects at a 1 second interval, to preserve space you can adjust to 5 or 10 seconds if you like. You do this by right-clicking Pal System Overview under your data collector and then modify the specific field. In this example, it is Seconds.

  8. Once you are satisfied with the configuration, right-click your data collector set and select Start. 

Note:

The collector set created in the steps in the article are not retained through a restart or crash of the Windows Operating System. To do this, see How to sustain your data collector set through a reboot. The data collector set information is stored in the C:\perflogs\admin folder.