Performance Monitor (Perfmon) Counters Useful for SQL Server Troubleshooting
book
Article ID: 177560
calendar_today
Updated On:
Products
Endpoint Protection
Issue/Introduction
How to gather performance data when SQL server performance is causing problems for Symantec Endpoint Protection manager (SEPM).
Resolution
The following steps will produce a Perfmon log that can be used to demonstrate performance trends on a SQL server over time.
- To open Perfmon click Start->Run, type "perfmon" into the Run dialog box, then click OK.
- Expand Performance Logs and Alerts on the left-hand panel in the Perfomance window.
- Select Counter Logs from the list under Performance Logs and Alerts.
- Click Action->New Log Settings...
- Provide an appropriate name for the new log settings (i.e. ____).
- On the General tab:
- Modify the Polling Interval to 1 second.
- Click Add Counters on the log settings creation dialog.
- To add Counters:
- choose the Performance object from the Performance Object drop-down list
- Select the appropriate Counter(s) from the counters list. (you can use Shift-click to select more than one Counter at a time)
- Once you have selected all of the Counters for a particular Performance Object, verify you have selected the proper instance, then click Add.
- Add the following Performance Objects/Counters:
- Processor/%Processor Time
- Processor/%User Time
The following counters are prefixed by "SQLServer" in a default instance, and MSSQL$[Instance_Name] for a named instance
- SQLServer:Databases/Bulk Copy Throughput/sec for _TOTAL
- SQLServer:Databases/Bulk Copy Throughput/sec for the SEPM database
- SQLServer:Locks/Average Wait Time (ms) for _TOTAL
- SQLServer:Locks/Lock Wait Time (ms) for _TOTAL
- SQLServer:Locks/Number of Deadlocks/sec for _TOTAL
- SQLServer:SQL Statistics/Batch Requests/sec
- SQLServer:Transactions/Longest Transaction Running Time
- On the Schedule tab:
- Schedule Perfmon to start and stop logging at specified times or choose to manually stop and start the trace.
- Whichever method is chosen, ensure that the performance data is gathered during a time period when performance issues are present.
- If the issue is intermittent, it is best to gather data from both "good" and "bad" times in a contiguous log.
Feedback
thumb_up
Yes
thumb_down
No