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 More