SQL Server内存性能监视工具

本文探讨了SQL Server在面临内存压力时性能下降的问题,以及如何使用动态管理视图(DMVs)、数据收集器和性能监控器来监测和诊断性能问题。重点介绍了几个关键的DMV,如`sys.dm_os_sys_info`、`sys.dm_os_sys_memory`和`sys.dm_os_process_memory`,并提供了查询示例来检查系统内存状态。此外,还提到了一些重要的性能计数器,如缓冲区高速缓存命中率和页面预期寿命,用于评估SQL Server内存使用效率。
摘要由CSDN通过智能技术生成

内存压力使查询变慢 (Memory pressure slowing down queries)

This article is the sequel in a series about SQL Server monitoring tools and common performance issues. The first article SQL Server monitoring tools for disk I/O performance is about how to detect and solve high input/output on hard disk subsystems when doing too much work during peak or maintenance times.

本文是有关SQL Server监视工具和常见性能问题的系列文章的续篇。 有关提高磁盘I / O性能SQL Server监视工具的第一篇文章是有关在高峰或维护时间内进行过多工作时如何检测和解决硬盘子系统上大量输入/输出的问题。

This article can be read independently but to get the full picture it’s recommended that part one is read first. Also, because issues described with the disk I/O performance can be manifested from memory issues. Therefore, feel free to check out initial write-up at the following link: SQL Server monitoring tools for disk I/O performance

可以独立阅读本文,但要全面了解,建议您首先阅读第一部分。 同样,因为磁盘I / O性能描述的问题可以从内存问题中看出来。 因此,请随时通过以下链接检查初始记录: 用于磁盘I / O性能SQL Server监视工具

One of the obvious problems with memory that doesn’t really require any SQL Server monitoring tool to be detected is when the system simply doesn’t have enough random-access memory AKA RAM. In such cases, memory pressure can occur because SQL Server simply cannot allocate enough memory.

内存中并不需要任何SQL Server监视工具的明显问题之一就是系统根本没有足够的随机存取内存AKA RAM。 在这种情况下,可能会出现内存压力,因为SQL Server根本无法分配足够的内存。

Hopefully, this will be a short article rather than a long one like I did with disk I/O performance but this stuff is essential to get the complete picture and take all things into account when troubleshooting performace issues. If you’ve troubleshooted memory issue before, then you probably encountered some of the symptoms like system wide performance decrease and I/O increase.

希望这将是一篇简短的文章,而不是像我对磁盘I / O性能所做的那样篇幅较长的文章,但这对于获得完整的概况以及在对性能问题进行故障排除时要考虑到所有因素至关重要。 如果您之前已经解决了内存问题,那么您可能会遇到一些症状,例如系统范围的性能下降和I / O增大。

性能监控工具 (Tools for performance monitoring)

动态管理视图 (Dynamic management views)

So, let’s get started with the Dynamic Management Views AKA DMVs. Most of you knows what DMVs are, but for those who doesn’t, DMVs are views and functions that return server state information which can be used to monitor the health of a server instance, diagnose problems, etc.

因此,让我们开始使用动态管理视图 AKA DMV。 你们中的大多数人都知道DMV是什么,但对于那些不知道的DMV,则DMV是返回服务器状态信息的视图和函数,这些信息可用于监视服务器实例的运行状况,诊断问题等。

The three commonly used DMVs in SQL Server for memory performance are:

SQL Server中用于内存性能的三种常用DMV是:

  • 0
    点赞
  • 2
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值