加入收藏 | 设为首页 | 会员中心 | 我要投稿 衡阳站长网 (https://www.0734zz.cn/)- 数据集成、设备管理、备份、数据加密、智能搜索!
当前位置: 首页 > 站长学院 > MsSql教程 > 正文

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

发布时间:2021-03-14 07:44:35 所属栏目:MsSql教程 来源:网络整理
导读:我有一个SQL Server 2008(版本10.0.1600)在 Windows Server 2008 R2企业版服务器上运行,具有8 GB的物理内存.如果我打开任务管理器,我可以在“性能”选项卡的“物理内存”部分看到只有340 MB可用的8191总计,但我看不到任何使用这种内存量的进程.请注意SQL Serv

我有一个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.

(编辑:衡阳站长网)

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

    热点阅读