There is insufficient system memory to run this query 错误
2013-07-03 23:39
567 查看
服务器环境大致情况如下:
操作系统: Microsoft Windows Server 2003 R2 Enterprise Edition Service Pack 2
数据库 : Microsoft SQL Server 2005 - 9.00.5000.00 (Intel X86) 。
机器物理内存8G,开启了“使用AWE分配内存选项(U)"
在这台服务器上,创建YourSQLDba后,配置过程中创建函数的时候,报如下错误,重试了几次都是如此,但是其它应用从来没有出过这个错误,而且这是一台生产服务器,很多应用在跑,所以这才是让我纳闷的地方:
消息 701,级别 17,状态 13,过程 clr_GetFolderList,第 1 行
There is insufficient system memory to run this query.
消息 701,级别 17,状态 13,过程 clr_GetFolderListDetailed,第 1 行
There is insufficient system memory to run this query.
其实这两个函数也没特别之处,而且在其它64数据库上,也没有碰到过类似的错误。
CREATE FUNCTION yUtl.clr_GetFolderList (@FolderPath nvarchar(4000), @SearchPattern nvarchar(4000))
RETURNS TABLE ([FileName] nvarchar(255))
AS EXTERNAL NAME [YourSqlDba_ClrFileOp].[Clr_FileOperations.FileOpCs].[Clr_GetFolderList];
GO
CREATE FUNCTION yUtl.clr_GetFolderListDetailed (@FolderPath nvarchar(4000), @SearchPattern nvarchar(4000))
RETURNS TABLE ([FileName] nvarchar(255), [FileExtension] nvarchar(255), [Size] bigint, [ModifiedDate] datetime, [CreatedDate] datetime)
AS EXTERNAL NAME [YourSqlDba_ClrFileOp].[Clr_FileOperations.FileOpCs].[Clr_GetFolderListDetailed];
GO
网上搜索了一下,发现蛮多人也遇到个这个错误:http://social.msdn.microsoft.com/Forums/sqlserver/en-US/81cd3698-10b2-4a67-ad92-fa123cef2caa/there-is-insufficient-system-memory-to-run-this-query-error-when-running-checkdb,但是也没有一个定论。
于是也按那些人讨论的,检查服务器环境:物理内存,数据库版本,AWE是否开启,最大服务器内存,clr enabled 配置等等
sp_configure 'clr enabled'
name minimum maximum config_value run_value
----------------------------------- ----------- ----------- ------------ -----------
clr enabled 0 1 1 1
但是,折腾了很长时间,也没搞清真正的出错原因,没办法,只能祭出大杀器”重启SQL SERVER服务",然后重新创建YourSQLDba数据库,创建相关存储过程、函数等。暂时记录一下这个问题,等有空闲或下次遇到时候,再想想办法解决它。
操作系统: Microsoft Windows Server 2003 R2 Enterprise Edition Service Pack 2
数据库 : Microsoft SQL Server 2005 - 9.00.5000.00 (Intel X86) 。
机器物理内存8G,开启了“使用AWE分配内存选项(U)"
在这台服务器上,创建YourSQLDba后,配置过程中创建函数的时候,报如下错误,重试了几次都是如此,但是其它应用从来没有出过这个错误,而且这是一台生产服务器,很多应用在跑,所以这才是让我纳闷的地方:
消息 701,级别 17,状态 13,过程 clr_GetFolderList,第 1 行
There is insufficient system memory to run this query.
消息 701,级别 17,状态 13,过程 clr_GetFolderListDetailed,第 1 行
There is insufficient system memory to run this query.
其实这两个函数也没特别之处,而且在其它64数据库上,也没有碰到过类似的错误。
CREATE FUNCTION yUtl.clr_GetFolderList (@FolderPath nvarchar(4000), @SearchPattern nvarchar(4000))
RETURNS TABLE ([FileName] nvarchar(255))
AS EXTERNAL NAME [YourSqlDba_ClrFileOp].[Clr_FileOperations.FileOpCs].[Clr_GetFolderList];
GO
CREATE FUNCTION yUtl.clr_GetFolderListDetailed (@FolderPath nvarchar(4000), @SearchPattern nvarchar(4000))
RETURNS TABLE ([FileName] nvarchar(255), [FileExtension] nvarchar(255), [Size] bigint, [ModifiedDate] datetime, [CreatedDate] datetime)
AS EXTERNAL NAME [YourSqlDba_ClrFileOp].[Clr_FileOperations.FileOpCs].[Clr_GetFolderListDetailed];
GO
网上搜索了一下,发现蛮多人也遇到个这个错误:http://social.msdn.microsoft.com/Forums/sqlserver/en-US/81cd3698-10b2-4a67-ad92-fa123cef2caa/there-is-insufficient-system-memory-to-run-this-query-error-when-running-checkdb,但是也没有一个定论。
于是也按那些人讨论的,检查服务器环境:物理内存,数据库版本,AWE是否开启,最大服务器内存,clr enabled 配置等等
sp_configure 'clr enabled'
name minimum maximum config_value run_value
----------------------------------- ----------- ----------- ------------ -----------
clr enabled 0 1 1 1
但是,折腾了很长时间,也没搞清真正的出错原因,没办法,只能祭出大杀器”重启SQL SERVER服务",然后重新创建YourSQLDba数据库,创建相关存储过程、函数等。暂时记录一下这个问题,等有空闲或下次遇到时候,再想想办法解决它。
相关文章推荐
- FIX: "There is insufficient system memory in resource pool 'internal' to run this query" error
- “The execution of scripts is disabled on this system” … How to run your own PowerShell scripts
- System.AccessViolationException: Attempted to read or write protected memory. This is often an indication that other memory is corrupt".
- 64位Ubuntu14.04 tomcat日志报错 There is insufficient memory for the Java Runtime Environment to continue
- 服务器磁盘扩展卷时遭遇“There is not enough space available on the disk(s) to complete this operation.”错误
- There is insufficient memory for the Java Runtime Environment to continue问题解决
- System.AccessViolationException: Attempted to read or write protected memory This is often an indication that other memory is corrupt
- There is insufficient memory for the Java Runtime Environment to continue. 解决
- There is insufficient memory for the Java Runtime Environment to continue.
- There is not enough procedure cache to run this procedure, trigger, or SQL batch. Retry later, or ask your SA to reconfigure SQL
- 错误:created a ThreadLocal with key of type ……but failed to remove it when the web application was stopped. This is very likely to create a memory leak.
- There is insufficient memory for the Java Runtime Environment to continue问题解决
- System error &H80004015 - This class is configured to run as a security id different from the caller.
- System.AccessViolationException: Attempted to read or write protected memory. This is often an indication that other memory is corrupt".
- There is insufficient memory for the Java Runtime Environment to continue
- The goal you specified requires a project to execute but there is no POM in this directory 错误
- ExpressCache : Product is not licensed to run on this system
- canOpenURL: failed for URL: "xx" - error:"This app is not allowed to query for scheme xx"
- 错误1130- Host xxx is not allowed to connect to this MariaDb server
- This is very likely to create a memory leak 异常