sql-server-2008 – SQL 2008内存使用情况

前端之家收集整理的这篇文章主要介绍了sql-server-2008 – SQL 2008内存使用情况前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。
我有一个sql Server 2008(版本10.0.1600)在 Windows Server 2008 R2企业版服务器上运行,具有8 GB的物理内存.如果我打开任务管理器,我可以在“性能”选项卡的“物理内存”部分看到只有340 MB可用的8191总计,但我看不到任何使用这种内存量的进程.请注意sql Server的内存限制为6GB(最大服务器内存= 6000).

如果我打开Sysinternals Process Explorer,我可以看到sqlsrvr.exe进程有:

Private Bytes:  227.000 K
Working Set:    140.000 K
Virtual Size: 8.762.000 K

这意味着什么?有没有办法为其他进程释放这些内存?为什么虚拟大小数字为已分配内存?我认为Virtual Size只是’保留记忆’.

解决方法

这个是正常的. sql服务器将始终使用所有可用内存,并在系统需要更多资源时缩减.

THIS文章描述了发生了什么.

When you start sql Server,sql Server memory usage may continue to steadily increase and not decrease,even when activity on the server is low. Additionally,the Task Manager and Performance Monitor may show that the physical memory available on the computer is steadily decreasing until the available memory is between 4 to 10 MB.

This behavior alone does not indicate a memory leak. This behavior is normal and is an intended behavior of the sql Server buffer pool.

By default,sql Server dynamically grows and shrinks the size of its buffer pool (cache) depending on the physical memory load reported by the operating system. As long as enough memory is available to prevent paging (between 4 – 10 MB),the sql Server buffer pool will continue to grow. As other processes on the same computer as sql Server allocate memory,the sql Server buffer manager will release memory as needed. sql Server can free and acquire several megabytes of memory each second,allowing it to quickly adjust to memory allocation changes.

原文链接:https://www.f2er.com/mssql/79911.html

猜你在找的MsSQL相关文章