sql 如果您发现在SQL Server中运行的进程倾向于将其挂起系统的可用RAM,则可能是因为默认设置

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了sql 如果您发现在SQL Server中运行的进程倾向于将其挂起系统的可用RAM,则可能是因为默认设置相关的知识,希望对你有一定的参考价值。

/****************************************************************************************************************************/
/* Source Article:                                                                                                          */
/* http://www.sqlservercentral.com/blogs/glennberry/2009/10/29/suggested-max-memory-settings-for-sql-server-2005_2F00_2008/ */
/****************************************************************************************************************************/

-- Turn on advanced options
EXEC  sp_configure'Show Advanced Options',1;
GO
RECONFIGURE;
GO

-- Current Server has 8GB of RAM allocated
-- Set max server memory = 6400MB for the server
EXEC  sp_configure'max server memory (MB)',6400;
GO
RECONFIGURE;
GO

-- See what the current values are
EXEC sp_configure;

以上是关于sql 如果您发现在SQL Server中运行的进程倾向于将其挂起系统的可用RAM,则可能是因为默认设置的主要内容,如果未能解决你的问题,请参考以下文章