SQL SERVER Performance counters to capture to analyze Memory pressure

We  need to define objects and counters in Windows Performance Monitor (PERFMON) .

To analyze memory pressure, you can capture the performance monitor objects such as

memory,

SQLServer: Buffer Manager,

SQLServer: Memory Manager and the associated counters for these objects.

For the MEMORY object, you can add counters such as

Available Bytes,

Pages/sec,

Page Faults/sec,

Pages Input/sec, and Pages Output/sec.

 The following describes each of the counters and the recommended value for each:

 For the SQLServer:Buffer Manager object, you can add counters such as                                                                                                                  

Buffer cache hit ratio,    Page Life Expectancy,     Database Pages,    Checkpoint Pages/sec  and    Lazy writes/sec.

The following describes each of the counters and the recommended value for each:

SELECT [cntr_value] FROM sys.dm_os_performance_counters

WHERE [object_name]LIKE '%Buffer Manager%' AND [counter_name] = 'Buffer cache hit ratio'

                                          SELECT [counter_name], [cntr_value] FROM sys.dm_os_performance_counters

                                                         WHERE [object_name] LIKE '%Buffer Manager%'

                                            AND [counter_name] IN ('Page reads/sec', 'Page writes/sec', 'Lazy writes/sec')

 

SELECT [cntr_value]FROM sys.dm_os_performance_counters

WHERE [object_name] LIKE '%Buffer Manager%' AND [counter_name] = 'Page life expectancy'

For the SQLServer:Memory Manager object, you can add counters such as Memory Grants Pending, Target Server Memory (KB), and Total Server Memory (KB)