top of page

SQL Server Memory Grants Pending value

Writer: Kunal RanpuraKunal Ranpura

-- Memory Grants Pending value for default instance

SELECT cntr_value AS [Memory Grants Pending]

FROM sys.dm_os_performance_counters WITH (NOLOCK)

WHERE [object_name] = N'SQLServer:Memory Manager' -- Modify this if you have named instances

AND counter_name = N'Memory Grants Pending' OPTION (RECOMPILE);


-- Memory Grants Pending above zero for a sustained period is a very strong indicator of memory pressure

Recent Posts

See All

Find SQL Server Memory Clerk Usage

-- Memory Clerk Usage for instance -- Look for high value for CACHESTORE_SQLCP (Ad-hoc query plans) SELECT TOP(10) [type] AS [Memory...

Comments


bottom of page