Académique Documents
Professionnel Documents
Culture Documents
SQL Server 2000 does a good job in optimizing using the present hardware setup. But more
often than not it becomes important for DBA's to analyze how healthy SQL Server is from
time to time. No wonder DBAs get paid really good all around the world.
In this article I would list some of the interesting counters you can ping to get the health on
various parameters of SQL Server. These are not the exhaustive list and it is not possible to
enumerate all in one go. Use Perfmon tools to get these parameters logged.
Performance Counter Name
1
10
11
Comments
Value greater than 1 or 2 indicates that we
SQLServer:Access Methods - Full Scans /
are having table / Index page scans. We
sec
need to analyze how this can be avoided.
Interesting counter that can lead us to our
SQLServer:Access Methods - Page
table / index design. This value needs to be
Splits/sec
low as possible.
This gives us the number of times a table
SQLServer:Access Methods - Table Lock
lock was asked for in a second. A high
Escalations/sec
number needs a revisit to the query and the
indexes on the table.
The percentage of pages that were found in
the memory. Higher the value the better.
SQL Server:Buffer Manager - Buffer cache
Preferred around the 90% mark. This
hit ratio
included the availability of the procedure
and the data cache in the system.
This number shows the number of pages
that constitute the SQL data cache. A large
changes in this value indicates the database
SQL Server:Buffer Manager - Database
is swapping cache values from the cache.
pages
We need to either increase the memory of
the system or the max server memory
parameter.
This indicates the number of procedures are
SQL Server:Buffer Manager - Procedure
present in the cache. This is the location
cache pages
where the compiled queries are stored.
This is the number of pages that were
SQL Server:Buffer Manager - Stolen pages stolen from the buffer cache to satisfy other
memory requests.
The ratio between the cache hits and
SQL Server:Cache Manager - Cache hit
misses. This counter is a good indicator of
ratio
our caching mechanism in SQL Server. This
value needs to be high in the system.
The number of currently active transactions
SQL Server:Databases - Active
in the system.
Transactions
The number of times the log files have been
extended. If there is lot of activity in this
SQL Server:Databases - Log growths
counter we need to allocate static and large
enough space for our log files.
This number indicates how active our SQL
SQL Server:Databases - Transactions/sec
Server system is. A higher value indicates
16
17
18
19
* Other generic performance counters are not added to this list. This will include
%Processor and Disk monitoring counters. Some of them have been outlined below.
28 Memory - Pages/sec
These are some of the performance counters I depend on while at my work for SQL Server
2000. These performance couters are of ultimate use in our every day activity for SQL
Server health