701: There is insufficient system memory in resource pool to run this query
SQL Server의미
SQL Server가 해당 resource pool에서 쿼리 실행에 필요한 메모리를 할당하지 못했다. 메모리 압박으로 작업이 실패했다.
원인
서버 메모리 부족, 낮은 max server memory 설정, 메모리를 많이 쓰는 쿼리(대규모 sort/hash), 메모리 누수, 많은 동시 요청, 또는 Resource Governor pool 한도.
해결 방법
max server memory 설정을 검토하고 충분한 물리 RAM을 확보한다. 메모리를 많이 쓰는 쿼리를 최적화한다(적절한 인덱스, sort/hash 감소). 메모리를 모니터링한다: sys.dm_os_memory_clerks, DBCC MEMORYSTATUS, Perfmon 메모리 카운터. Resource Governor pool 한도를 조정한다. 필요하면 동시성을 줄인다.
같은 데이터베이스의 다른 항목
- 233A connection was successfully established with the server, but then an error occurred (no process is on the other end of the pipe)
- 823The operating system returned error to SQL Server during a read/write at offset in file (I/O error)
- 824SQL Server detected a logical consistency-based I/O error (page corruption)
- 845Time-out occurred while waiting for buffer latch
- 3201Cannot open backup device. Operating system error (backup device error)
- 8134Divide by zero error encountered
- 245Conversion failed when converting the value to data type