Home > SQL Server Tips > Database Management and Administration > Using SQL Server counters - Part 1
SQL Server Tips:
EMAIL THIS
 TIPS & NEWSLETTERS TOPICS 

DATABASE MANAGEMENT AND ADMINISTRATION

Using SQL Server counters - Part 1


Barrie Sosinsky, Contributor
06.14.2004
Rating: --- (out of 5)


Digg This!    StumbleUpon Toolbar StumbleUpon    Bookmark with Delicious Del.icio.us   


The following tip, SQL Server counters, part 2 will look at more specific counters to use for monitoring SQL Server performance.

The Performance Monitor is one of three tools you can use for monitoring SQL Server's performance (the other two are the Profiler and the Enterprise Manager). With more than 156 individual counters and the ability to create your own counters (as described in SQL Server Books Online) there is an almost bewildering array of tools for you to work with. The Windows server OS offers literally hundreds of possible counters for you to analyze. The words "information overload" come to mind. However, some counter types are much more valuable than others, and your particular setup and troubleshooting will direct your needs to one set of counters or another.

You can get to the Performance Monitor from a menu command or from an icon in the Profiler toolbar. There are six counters that are installed and monitored by default in version 7.0: Buffer Cache Hit Ratio, Page Reads, Page Writes, SQL Compilations/sec, Total Server Memory (KB), and User Connections. The version of SQL Server you are using makes a difference, because in version 6.5 there were five defaults: Cache Hit Ratio, three I/O counters (Page Reads/sec, Single Page Writes/sec, and Transactions/sec), as well as User Connections. These sets of counters measure similar metrics, but have slightly different meanings and therefore interpretations.

It's a good idea to measure counters one at a time. The most important counters are probably: Disk I/O, Processor, Memory, User Connections, and Network in that order. These are the major bottlenecks in database performance (generally), and they are the ones that you can apply the appropriate corrections to. You may find that the Performance Monitor collects more data than you need, which is commonly the case; or you may find that the performance feature that you want to analyze is removed from the chart by the next scan of data. Adjust the update frequency using the Options | Chart command so that you can better view the important aspects of your results.

You'll find that you will want to add more counters when you are troubleshooting or diagnosing problems. Counters are added to the Performance Monitor using the Edit | Add to Chart command or the Plus icon on the toolbar of that utility. In selecting a counter you also need to pay attention to various instances of the particular counters you are adding. For example, some instances are database specific, and some instances aren't. SQL Server 7.0 has 22 counters that express 70 instances, for example.

Be aware that many counters will create a drag on a system's performance, so be careful that you don't install a counter on a permanent basis that will impact your database's operation negatively. You will also find that some counters only run as long as the Performance Monitor is open and are closed when you exit the utility. In the next tip we'll take a further look at this important troubleshooting and optimization tool.


The following tip, SQL Server counters, part 2 will look at more specific counters to use for monitoring SQL Server performance.

Barrie Sosinsky is president of consulting company Sosinsky and Associates (Medfield MA). He has written extensively on a variety of computer topics. His company specializes in custom software (database and Web related), training and technical documentation.


Rate this Tip
To rate tips, you must be a member of SearchSQLServer.com.
Register now to start rating these tips. Log in if you are already a member.


Submit a Tip




Digg This!    StumbleUpon Toolbar StumbleUpon    Bookmark with Delicious Del.icio.us   



RELATED CONTENT
Microsoft SQL Server Performance Monitoring and Tuning
Using traces in SQL Server Profiler
SQL Server Mailbag: CALs, witnesses and unwanted changes
SQL Server Mailbag: Data restoration and DB property management
Working with IntelliSense in SQL Server 2008 Management Studio
SQL Server Mailbag: Stored procedures, triggers and SSRS reports
Troubleshooting Distributed Transaction Coordinator errors in SQL Server
Clearing the Windows page file and its effect on server performance
Optimizing SQL Server indexes –- even when they're not your indexes
Performance implications of transaction log autogrowth in SQL Server
The short course on how SQL Server really works

Database Management and Administration
Password cracking tools for SQL Server
Using traces in SQL Server Profiler
Meet compliance requirements with improved database security practices
Hardening the network and OS for SQL Server security
Securing the server and database in SQL Server
How SQL Server 2008 components impact SharePoint implementations
Troubleshooting Distributed Transaction Coordinator errors in SQL Server
Achieving high availability and disaster recovery with SharePoint databases
Clearing the Windows page file and its effect on server performance
Deploying a SQL Server virtual appliance for Microsoft Hyper-V

RELATED GLOSSARY TERMS
Terms from Whatis.com − the technology online dictionary
contiguity  (SearchSQLServer.com)
contiguous  (SearchSQLServer.com)
drilldown  (SearchSQLServer.com)
hashing  (SearchSQLServer.com)
hybrid online analytical processing  (SearchSQLServer.com)

RELATED RESOURCES
2020software.com, trial software downloads for accounting software, ERP software, CRM software and business software systems
Search Bitpipe.com for the latest white papers and business webcasts
Whatis.com, the online computer dictionary

DISCLAIMER: Our Tips Exchange is a forum for you to share technical advice and expertise with your peers and to learn from other enterprise IT professionals. TechTarget provides the infrastructure to facilitate this sharing of information. However, we cannot guarantee the accuracy or validity of the material submitted. You agree that your use of the Ask The Expert services and your reliance on any questions, answers, information or other materials received through this Web site is at your own risk.



SQL Server Development - .NET, C#, T-SQL, Visual Basic
HomeNewsTopicsITKnowledge ExchangeTipsAsk the ExpertsMultimediaWhite PapersIT Downloads
About Us  |  Contact Us  |  For Advertisers  |  For Business Partners  |  Site Index  |  RSS
SEARCH 
TechTarget provides technology professionals with the information they need to perform their jobs - from developing strategy, to making cost-effective purchase decisions and managing their organizations' technology projects - with its network of technology-specific websites, events and online magazines.

TechTarget Corporate Web Site  |  Media Kits  |  Site Map




All Rights Reserved, Copyright 2005 - 2009, TechTarget | Read our Privacy Policy
  TechTarget - The IT Media ROI Experts