加入收藏 | 设为首页 | 会员中心 | 我要投稿 百客网 - 百科网 (https://www.baikewang.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 服务器 > 搭建环境 > Windows > 正文

windows – 如何限制MS SQL Server内存使用?

发布时间:2021-03-05 18:50:27 所属栏目:Windows 来源:网络整理
导读:我听说MS SQL Server占用尽可能多的RAM来缓存结果.好吧,它没有为我们的小服务器的RAM留下足够的讨价还价空间. 如何更改设置以限制可以使用的RAM量? 在Windows Server 2008上运行的MS SQL Server. 从 How to configure memory options using SQL Server Mana

我听说MS SQL Server占用尽可能多的RAM来缓存结果.好吧,它没有为我们的小服务器的RAM留下足够的讨价还价空间.

如何更改设置以限制可以使用的RAM量?

在Windows Server 2008上运行的MS SQL Server.

从 How to configure memory options using SQL Server Management Studio开始:

Use the two server memory options,min server memory and max server memory,to reconfigure the amount of memory (in megabytes) managed by the SQL Server Memory Manager for an instance of SQL Server.

  1. In Object Explorer,right-click a server and select Properties.
  2. Click the Memory node.
  3. Under Server Memory Options,enter the amount that you want for Minimum server memory and Maximum server memory.

您也可以使用以下命令在T-SQL中执行此操作(示例):

exec sp_configure 'max server memory',1024
reconfigure

(编辑:百客网 - 百科网)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!