Catch Memory Grant Waits via sys.dm_exec_query_memory_grants
Oct 17, 2026 / · 10 min read · sql server sys.dm_exec_query_memory_grants sys.dm_exec_query_resource_semaphores sys.dm_exec_requests sys.dm_exec_sql_text sys.dm_os_memory_clerks sys.dm_exec_query_plan sys.dm_os_wait_stats sys.messages sys.dm_os_sys_info memory grants resource semaphore performance tuning scripts ·Finding the one query stuck behind a RESOURCE_SEMAPHORE wait starts with a plain fact most dashboards gloss over: a query waiting on a memory grant isn't failing yet — it's queued, holding a worker thread while SQL Server decides who gets the next slice of execution memory. If that wait outlasts the query's own timeout …
Read MoreSpot Low-Memory Conditions with sys.dm_os_process_memory
sys.dm_os_process_memory is SQL Server's process-level counterpart to the operating system's own memory counters — a single row reporting exactly how much of the machine's memory space the sqlservr.exe process is holding, down to large-page allocations, committed virtual address space, and two flags that fire the …
Read MoreRank Top Memory Consumers with sys.dm_os_memory_clerks
Jul 20, 2026 / · 8 min read · sql server sys.dm_os_memory_clerks memory clerks memory pressure plan cache xtp query store dmv performance monitoring scripts ·Buffer pool counters explain data cache pressure but go silent the moment memory trouble comes from somewhere else. sys.dm_os_memory_clerks lists every active memory clerk — buffer pool, plan cache, In-Memory OLTP, Query Store, query memory grants, Extended Events — and reports pages_kb per clerk. Grouping those rows …
Read More