SQL Server 计数器 阀值列表

本文涉及的产品
RDS SQL Server Serverless,2-4RCU 50GB 3个月
推荐场景:
云数据库 RDS SQL Server,基础系列 2核4GB
简介: List of Threshold Value for SQL Server Performance Counters By : Kasim Wirama, MCDBA, MCITP   Monitoring database performance is proactive task that a DBA should do.

List of Threshold Value for SQL Server Performance Counters

By : Kasim Wirama, MCDBA, MCITP

 

Monitoring database performance is proactive task that a DBA should do. Possible bottleneck for SQL Server is memory, processor, I/O subsystem, tempdb database, and locking. For SQL Server specifics, below list is a minimum set of counters that should be used for monitoring SQL Server performance daily. I would give preferred value but your environment might require the value stick with the preferred one because each database environment is unique. For your initial baseline, it could your reference.

1.       1. SQL Server:Access Methods with counter : Forwarded Records/sec

Preferred value : less than 10 of 100 Batch Requests/Sec

 

2.       2. SQL Server:Access Methods with counter : Full Scans/sec

Preferred value : (Index searches/sec)/(Full scans/sec) should be greater than 1000

 

3.      3. SQL Server:Access Methods with counter : Index Searches/sec

Preferred value : same with point 2

 

4.       4. SQL Server:Access Methods with counter : Page Splits/sec

Preferred value : less than 20 of 100 Batch Requests/sec

 

5.       5. SQL Server:Buffer Manager with counter : Buffer Cache Hit Ratio

Preferred value : greater than 90%

 

6.       6. SQL Server:Buffer Manager  with counter : Free List Stalls/sec

Preferred value : less than 2

 

7.       7. SQL Server:Buffer Manager with counter : Free Pages

Preferred value : greater than 640

 

8.       8. SQL Server: Buffer Manager with counter : Lazy Writes/Sec

Preferred value : less than 20

 

9.       9. SQL Server: Buffer Manager with counter : Page Life Expectancy

Preferred value : greater than 600 seconds.

 

10.   10. SQL Server: Buffer Manager with counter : Page Lookup/sec

Preferred value : (Page Lookup/sec)/(Batch Requests/sec) should less than 100

 

11.   11. SQL Server: Buffer Manager with counter : Page Reads/sec

Preferred value : less than 90

 

12.   12. SQL Server: Buffer Manager with counter : Page Writes/sec

Preferred value : same with point 11

 

13.   13. SQL Server: General Statistics with counter : Logins/sec

Preferred value : less than 2

 

14.   14. SQL Server: General Statistics with counter : Logouts/sec

Preferred value : less than 2

 

15.   15. SQL Server: Latches with counter : Latch Waits/sec

Preferred value : (Total Latch Wait Time)/(Latch Waits/Sec) less than 10

 

16.   16. SQL Server: Latches with counter : Total Latch Wait Time (ms)

Preferred value : same with point 15

 

17.   17. SQL Server: Locks with counter : Lock Wait Time(ms)

Preferred value : should not exceeds 60 seconds.

 

18.   18. SQL Server: Locks with counter : Lock Waits/sec

Preferred value : should be zero

 

19.   19. SQL Server: Locks with counter : Number of Deadlocks/sec

Preferred value : less than 1

 

20.   20. SQL Server: SQL Statistics with counter : SQL Compilations/sec

Preferred value : less than 10% of number of Batch Requests/sec

 

21.   21. SQL Server: SQL Statistics with counter : SQL Re-Compilations/sec

Preferred value : less than 10% of number of SQL Compilations/sec

 

Generally 15 seconds sample rate is sufficient and it is recommended to save it into CSV for later analysis.

相关实践学习
使用SQL语句管理索引
本次实验主要介绍如何在RDS-SQLServer数据库中,使用SQL语句管理索引。
SQL Server on Linux入门教程
SQL Server数据库一直只提供Windows下的版本。2016年微软宣布推出可运行在Linux系统下的SQL Server数据库,该版本目前还是早期预览版本。本课程主要介绍SQLServer On Linux的基本知识。 相关的阿里云产品:云数据库RDS SQL Server版 RDS SQL Server不仅拥有高可用架构和任意时间点的数据恢复功能,强力支撑各种企业应用,同时也包含了微软的License费用,减少额外支出。 了解产品详情: https://www.aliyun.com/product/rds/sqlserver
目录
相关文章
|
6月前
|
SQL Windows
安装SQL Server 2005时出现对性能监视器计数器注册表值执行系统配置检查失败的解决办法...
安装SQL Server 2005时出现对性能监视器计数器注册表值执行系统配置检查失败的解决办法...
49 4
|
SQL 存储 缓存
Sql Server 内存相关计数器以及内存压力诊断
原文:Sql Server 内存相关计数器以及内存压力诊断   在数据库服务器中,内存是数据库对外提供服务最重要的资源之一,  不仅仅是Sql Server,包括其他数据库,比如Oracle,MySQL等,都是一类非常喜欢内存的应用.  在Sql Server服务器中,最理想的情况是Sql Server把所有所需的数据全部缓存到内存中,但是这往往也是不现实的,因为数据往往总是大于可用的物理内存  可以说内存是否存在压力能够直接决定数据库能否高效运行,  同时,如果内存出现压力,同时也会影响到CPU的使用和存储性能,可以说是一损俱损,具有连带性。
1310 0
|
SQL 缓存 监控
SQL Server需要监控哪些计数器
原文:SQL Server需要监控哪些计数器 常规计数器 收集操作系统服务器的服务器性能信息,包括Processor、磁盘、网络、内存 Processor 处理器 1.1 % Processor Time指处理器用来执行非闲置线程时间的百分比。
1038 0
|
SQL 存储 缓存
SQL Server 2008 R2 性能计数器详细列表(一)
原文: SQL Server 2008 R2 性能计数器详细列表(一) SQL Server Backup Device 计数器: 可监视用于备份和还原操作的 Microsoft SQL Server 备份设备 SQL Server Backup Device 计数器 说明 Device Throughput Bytes/sec 一个备份设备在备份或还原数据库时所用的读写操作的吞吐量(以每秒字节数表示)。
1245 0