investigate-sql-memory-issues
Installation
SKILL.md
Memory Pressure Investigation
Purpose
This is the primary entry point for investigating memory pressure and memory-related issues in SQL Server and Azure SQL. Use when a user reports:
- Out-of-memory errors (701, 802, 8645, 8651, 17890)
RESOURCE_SEMAPHOREorRESOURCE_SEMAPHORE_QUERY_COMPILEwaits- High memory usage percentage in Azure SQL or Azure SQL Managed Instance
- Queries waiting for memory grants or timing out on grants
- Large or wasteful memory grants causing memory pressure for other queries
- Memory clerk growth (lock manager, query grants, CLR, third-party DLLs)
- Low Page Life Expectancy (PLE) or high Lazy Writes on SQL Server on-premises