我听说MS sql Server占用尽可能多的RAM来缓存结果.好吧,它没有为我们的小服务器的RAM留下足够的讨价还价空间.
@H_502_1@如何更改设置以限制可以使用的RAM量?
@H_502_1@在Windows Server 2008上运行的MS sql Server.
从
How to configure memory options using SQL Server Management Studio开始:
@H_502_1@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.@H_502_1@您也可以使用以下命令在T-sql中执行此操作(示例):
- In Object Explorer,right-click a server and select Properties.
- Click the Memory node.
- Under Server Memory Options,enter the amount that you want for Minimum server memory and Maximum server memory.
exec sp_configure 'max server memory',1024 reconfigure