Practical Solution to SQL Server Performance Monitoring
In order to prepare and execute the monitoring processes you should perform the following steps on the server you will monitor:
- Create a C:PerfLogs folder and copy SQLperfmon.htm to this folder.
- Start the Windows Performance Monitor console by clicking the Start button on your desktop, selecting the Run option, and typing in a “perfmon” command.
- On the Tree tab, expand Performance Logs and Alerts. Right-click on Counter Logs and choose New Log Settings From… (Figure 1).
- Select the SQLperfmon.htm file from the C:PerfLogs folder (Figure 2).
- The Counter Log properties window appears (Figure 3).
On the General tab, you can see the performance log file name, a list of all the predefined counters, and the monitoring interval. You can change the log file name and the monitoring interval without any impact on the described monitoring process. The counters list assumes that the monitored server has two physical disks: “0 C:” and “1 D:”. If the disk configuration is different from the counter list, you can modify the counter list along with the corresponding PerfmonDataCustomer01 table and import scripts.
On the Schedule tab, you can define when to start and stop monitoring. For example, you may want to monitor the server only during business hours. In order to change the location of the file or the file name pattern, use the Log Files tab. When editing, make sure that the file type remains “Text File – CSV.”
- Click OK, and the new SQLperfmon counter log will be added to the log list. You can start the monitoring process immediately, or wait for it to be started by the scheduler, if set (Figure 4).