Link to home
Create AccountLog in
Avatar of PBIT
PBITFlag for United States of America

asked on

Need SQL Server performance counters

Hello,

With Windows Performance Monitor and measuring SQL Server performance, what are some of the typical counters to use to track SQL Server performance.

Also, how to record the history into a CSV file?

Thanks.
ASKER CERTIFIED SOLUTION
Avatar of edtechdba
edtechdba
Flag of United States of America image

Link to home
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.
See answer
Hi,

To check the physical resources on the server we use:

\\Processor(*)\*
\\PhysicalDisk(*)\*
\\Memory\*
\\NetworkInterface(*)\*

The additional ones we use for SQL are:

\\SQLServer\GeneralStatistics\*
\\SQLServer\BufferManager\*
\\SQLServer\MemoryManager\*
\\SQLServer\WaitStatistics\*

In all cases we use a sample interval of 5 seconds which is suitable for a performance study.  If you want trend type reporting a sample interval of 1 minute is more realistic.

For CSV, create a Data Collector Set with the counters you want to capture.  After you've OK'd it double click on the collector set to show the data collector (there should be one).  Right click on the data collector and choose Properties.  Under the Performance Counters tab you should have a prompt for Log Format; one option is Comma Separated.  I'm assuming Win2008 R2 here.

Best regards..Paul