top of page
Writer's pictureKunal Ranpura

SQL Server Memory Grants Pending value

-- 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

27 views0 comments

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...

Find SQL Server Memory Grant OutStanding

-- Memory Grants Outstanding value for default instance SELECT cntr_value AS [Memory Grants Outstanding] FROM sys.dm_os_performance_count...

Comentarios


bottom of page