Setting up Windows Performance Monitor Templates
Views (528)
To log valuable information about your database server such as disk, processor, memory and network, it is important to configure and schedule the performance counter logging. In the following steps, you will configure the database server for performance counter logging. This information will be logged to performance counter log files.
First we can setup the template for the SQL Server:
- If you are using a Named instance of SQL Server, other than default MSSQLSERVER, follow these steps, otherwise go to step 6:
- Browse to the Server2008_SQL_Named_Instance.xml file under [DynamicsPerf 2.00\DynamicsPerf\Windows Perfmon Scripts]
- Open the file in Notepad
- Replace [InstanceName] with the actual name of your named SQL instance: <Counter>\MSSQL$InstanceName:Access Methods\Forwarded Records/sec</Counter>
- Save the file
- Start > Run > Perfmon
- Expand Data Collector Set
- Right click User Defined and select New > Data Collector Set

- Name it “SQL Server Performance”
- Select the “Create from a template” option.
- Click Next
- Select “System Performance” and click Browse to browse to the Server2008_SQL_Default_Instance .xml file if you are using a Default SQL Server or the Server2008_SQL_Named_Instance.xml file if you are using a Named SQL Server

- Click Finish
- Right-click on the SQL Server Performance data collector set and click Properties
- By default, the performance counter logs will log to C:\perflogs. If you wish to change this path, follow these steps. Otherwise, go to step 18:
- Select the Directory tab
- Browse to a local root directory to where you want to store the performance counter logs.
- Select the Schedule tab
- Select beginning date as of today and leave the rest as default so it will run continuously without an end date.

- Click OK to close Folder action window
- Ensure All schedules enabled checkbox is checked
- Click OK to close window
- You can also set up a condition to stop the logging with specific condition on file size and duration. For example, you can click Stop Condition and choose the restart the logging if the file size reaches 500,000 MB.

- If you right-click the Template [SQL Server Performance] and select Data Manager, you can also change the default settings.
Note: to verify that SQL counters are correctly, please check specific counters such as [SQL Server: Buffer Manager\Page Life Expectancy] or [SQL Server: SQL Statistics\ Batch Requests/sec]
Now let's define the template for the Dynamics AX AOS Server:
- Start > Run > Perfmon
- Expand Data Collector Sets
- Right click User Defined and select New > Data Collector Set.
- Name it “AOS Server Performance”
- Select the “Create from a template” option.
- Click Next
- Select “System Performance” and click Browse to browse to the Server2008_AOS.xml file under [DynamicsPerf 2.00\DynamicsPerf\Windows Perfmon Scripts]
- Click Finish
- Right-click on the AOS Server Performance data collector set and click Properties
- NOTE: By default, the performance counter logs will log to C:\perflogs. If you wish to change this path, follow these steps. Otherwise, go to step 13
- Select the Directory tab
- Browse to a local root directory to where you want to store the performance counter logs.
- Select the Schedule tab
- Click the Add button to create new schedule
- Select beginning date as of today and leave the rest as default so it will run continuously without an end date.
- Click OK to close Folder action window
- Ensure All schedules enabled checkbox is checked
- Click OK to close window
You can now manually start the two templates by clicking the Green arrow for each Template:
You should then see the new icon for each template that shows the data is been collected:
Regards,
@BertrandCaillet
Principal Premier Field Engineer

Like
Report

*This post is locked for comments