简体   繁体   English

如何减少SQL Server中的物理内存使用率

[英]How to reduce Physical Memory usage in SQL Server

I have 32 GB physical memory server. 我有32 GB的物理内存服务器。 When I am starting my server its taking 18gb memory when the server and SQL Server 2008 R2 will up. 当我启动服务器时,它将占用18gb的内存,此时服务器和SQL Server 2008 R2将启动。 But after few hours SQL Server will be taking up 23gb or more cached size going 4939 or more. 但是数小时后,SQL Server将占用23gb或更多的缓存大小,达到4939或更多。 What is the cause of this problem and how can I see which queries making this problem?` 此问题的原因是什么,如何查看导致此问题的查询?

SQL loves memory, it'll use what it needs to, especially when caching data. SQL喜欢内存,它将使用所需的内存,尤其是在缓存数据时。 The very nature of caching data is using memory. 缓存数据的本质是使用内存。 If your concerned about leaving a little memory for the server or other processes running on your server, then set a max memory amount to SQL. 如果您担心为服务器或服务器上运行的其他进程留出少量内存,则将最大内存量设置为SQL。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM