SQL Server Forums
Profile | Register | Active Topics | Members | Search | Forum FAQ
 
Register Now and get your question answered!
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 SQL Server 2005 Forums
 SQL Server Administration (2005)
 There is insufficient system memory to run this qr
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

poratips
Posting Yak Master

104 Posts

Posted - 07/23/2013 :  12:10:11  Show Profile  Reply with Quote
Hi,
We are getting right now following error:
We have Sql 2005 with 4 GB Memory

There is insufficient system memory to run this query.
Error: 701, Severity: 17, State: 42.

then it contains another messages like:
MEMORYCLERK_SQLGENERAL (Total)
VM Reserved = 0 KB
VM Committed = 0 KB
AWE Allocated = 0 KB
SM Reserved = 0 KB
SM Committed = 0 KB
SinglePage Allocator = 31280 KB
MultiPage Allocator = 4504 KB

CACHESTORE_ related
USERSTORE_ related

James K
Flowing Fount of Yak Knowledge

3588 Posts

Posted - 07/23/2013 :  13:06:57  Show Profile  Reply with Quote
I have not run into this problem, but googling for it, I see this support issue - see if that sheds any light: http://support.microsoft.com/kb/2001221
Go to Top of Page

poratips
Posting Yak Master

104 Posts

Posted - 07/23/2013 :  17:46:28  Show Profile  Reply with Quote
Thanks James.
I already seen that url. Our query is very complex and big so we might need to look into and also replication runs every few minutes interval so consuming more memory.

Go to Top of Page

russell
Pyro-ma-ni-yak

USA
5072 Posts

Posted - 07/24/2013 :  09:19:41  Show Profile  Visit russell's Homepage  Reply with Quote
is there a very large IN(...) clause? IF so, try putting the values into a temp table and joining to it instead of using IN.

If that's not it, post the query.
Go to Top of Page

jackv
Flowing Fount of Yak Knowledge

United Kingdom
2046 Posts

Posted - 07/24/2013 :  14:49:36  Show Profile  Visit jackv's Homepage  Reply with Quote
the 701 can be caused by a number of different reasons. This is the pririty list I normally use to troubleshoot the 701 :
http://www.sqlserver-dba.com/2013/07/troubleshoot-error-701-there-is-insufficient-system-memory-to-run-this-query.html

Jack Vamvas
--------------------
http://www.sqlserver-dba.com
Go to Top of Page

poratips
Posting Yak Master

104 Posts

Posted - 07/29/2013 :  11:31:46  Show Profile  Reply with Quote
Thanks all of you, It was query issue which is building dynamically but this time it was not proper joined.

During new migration in production for Sql 2008R2, what should be memory settings for MIN and MAX as we have Replication DBB also running with other batch job?

Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
SQL Server Forums © 2000-2009 SQLTeam Publishing, LLC Go To Top Of Page
This page was generated in 0.06 seconds. Powered By: Snitz Forums 2000