Friday, April 4, 2014

There is insufficient system memory in resource pool 'default' to run this query

We have encounter “insufficient memory” issue on SQLServer cluster and found below error in Event Viewer and Error.log

2014-04-04 05:36:16.83 spid136 Error: 701, Severity: 17, State: 123.
2014-04-04 05:36:16.83 spid136 There is insufficient system memory in resource pool 'default' to run this query. 


Below are the main reasons for the issue

1. The physical memory is completely used and not available for SQLServer
2. SQLServer engine Max memory allocation has been reached limit.
3. Virtual memory is full

First find out which processes are consuming memory, if any tools or application processes outside of sqlserver consuming and then you can close or kill the process, if not important.

Run below command to find out memory Status

DBCC MEMORYSTATUS

You can also run below commands to clear the memory

DBCC FREESYSTEMCACHE
DBCC FREESESSIONCACHE
DBCC FREEPROCCACHE
DBCC DROPCLEANBUFFERS

Possible workaround/solution:

If the physical memory on the server is full and you have allocated “Maximum Server memory” for SQL Server close the physical memory of the server then I would recommend decreasing the “Maximum Server memory” of SQL Server to left some memory for Operating system.

If your SQLServer engine max server memory is reached the limit and you still have physical memory available then I would advise increasing the “Maximum Server memory” will help.

If your Virtual memory is full then you need more Physical memory and I would advise to add the same.

Regards
Satishbabu Gunukula
http://www.sqlserver-expert.com

6 comments:

  1. hi guys,
    looking for sql server developer then i would like to show you a name who has great experience with great companies now he is a free worker with good knowledge of sql server developing .he is a very very talented in developing so i will not allow you to wait for the name so lets meet Mr. Chrlie .please see the link for more details.: SQL server expert thank you

    ReplyDelete
  2. Also expert working with databases computers should likewise have the ability to produce a shaver sharpened target. The actual everyday server jobs is usually different while techniques can easily breakdown pertaining to a number of motives.

    ReplyDelete
  3. Dumb question: Works on SQL Server 2012 Evaluation Edition?

    ReplyDelete
  4. Do you really mean Evaluation or the Express ? Personally I would never use a timed bomb software for a Database except for a very short test, since an evaluation process is prone to unpredictable issues that can delay a timeline to exceed the trial period, if it is a small project you can probably use the Express edition instead and if it is a big one they hopefully can pay for a license.

    ReplyDelete

  5. Nice Article !

    Really this will help to people of SQL Server Community.
    I have also prepared small note on this, why insufficient system meory error in SQL Server.

    http://www.dbrnd.com/2015/11/sql-server-error-701-there-is-insufficient-system-memory-to-run-this-query/

    ReplyDelete
  6. It is for our health benefits. However, cleaning them is not always easy. There are lots of things to be done just to keep the them clean.SCOTT

    ReplyDelete