最近重新翻看The Accidental DBA,将Troubleshooting部分稍作整理,方便以后查阅。此篇是Part 3
Part 1:The Accidental DBA:SQL Server Backup
Part 2:The Accidental DBA:Troubleshooting Performance
一、Wait Statistics Analysis
当SQL Server执行一项任务,如果它需要等待(页面释放锁、从磁盘读取页面到内存、事务日志写入),SQL Server会记录等待类型和等待时间。这些信息累积的,可以从sys.dm_os_wait_stats中查询。
如果你还没有使用过Wait Statistics,推荐你先阅读Paul’s wait stats post以及SQL Server Performance Tuning Using Wait Statistics: A Beginners Guide白皮书。
1.1、Viewing Wait Statistics
如果你执行下面语句

SELECT *
FROM sys.dm_os_wait_stats
ORDER BY wait_time_ms DESC
View Code

相关文章:

  • 2022-01-23
  • 2021-12-27
  • 2021-10-26
  • 2021-08-26
  • 2021-09-29
  • 2022-12-23
猜你喜欢
  • 2021-11-18
  • 2021-12-07
  • 2021-09-06
  • 2022-12-23
  • 2021-10-08
  • 2021-11-18
  • 2021-04-21
相关资源
相似解决方案