windows 2008 R2 内存问题

windows 2008 R2  内存问题。 OS 是Windows 2008 R2 Standard版,Total 有12 G内存,从task manager 和Nagios监控看,内存基本上被吃光了,但是,把所有的process 占用的内存加起来,用了大概2G多,其它9G的内存不知道用到什么地方去了。

我使用RAMMAP的工具检查,发现 这不见的9G内存时被Metafile占用了。请问一下这个Metafile 具体是指什么?如何解决?

 

回答:通过下面的三篇文章,让我们共同分析这个问题:

Introduction to the new Sysinternals tool: RAMMap

http://blogs.technet.com/b/askperf/archive/2010/08/13/introduction-to-the-new-sysinternals-tool-rammap.aspx

High Memory Usage – Windows Server 2008 R2 File Server

http://wasthatsohard.wordpress.com/2011/03/01/high-memory-usage-windows-server-2008-r2-file-server/

You experience performance issues in applications and services when the system file cache consumes most of the physical RAM

http://support.microsoft.com/kb/976618#appliesto

所以,Metafile is part of the system cache and consists of NTFS metadata. NTFS metadata includes the MFT as well as the other various NTFS metadata files (see How NTFS Works for more details, and of course Windows Internals is a great reference). In the MFT each file attribute record takes 1k and each file has at least one attribute record. Add to this the other NTFS metadata files and you can see why the Metafile category can grow quite large on servers with lots of files.

那么Metafile是系统缓存的一部分同时也包含了NTFS的数据。您看到的文章来自活动目录seo http://adirectory.blog.com/category/system-network-administration/

在上面提到的那个KB中,Microsoft提供了一个Microsoft Windows Dynamic Cache Service这样的话可以用GetSystemFileCacheSize API 和 SetSystemFileCacheSize API去设置最大的内存使用率,

您可以从下面的网站下载:

http://www.microsoft.com/en-us/download/details.aspx?id=9258

其实对于这个问题的话,您可以参考下面的文章:

Microsoft提供了一个Microsoft Windows Dynamic Cache Service这样的话可以用GetSystemFileCacheSize API 和 SetSystemFileCacheSize API去设置最大的内存使用率,

您可以从下面的网站下载:

http://www.microsoft.com/en-us/download/details.aspx?id=9258

其实对于这个Metafile占用内存的原理的话,一般都是因为在文件打开后为了快速查询和复制,服务器会考虑把这些文件放置到自己的内存在,那么如果文件被打开的或是查询的越多那么内存占用就会越多。

对于这个问题的话您可以参考我以前提供的文章去

修改GetSystemFileCacheSize和SetSystemFileCacheSize的数值

http://www.microsoft.com/en-us/download/details.aspx?id=9258

其实定期安排服务器重启的话,有一定的改善作用;但是修改这个数值才是真的解决方法,因为这个问题是Known Issue。
Devin Zhang 

 

windows 2008 r2内存占用的相关文章请参考

虚拟内存设置 

32位windows 2008只认2G内存 

windows性能计数器Pages/sec 

—gnaw0725


    :windows 2008 r2windows 2008 r2内存windows 2008 r2区别windows 2008内存占用内存占用

    // If comments are open, but there are no comments.
    • 0
      点赞
    • 1
      收藏
      觉得还不错? 一键收藏
    • 2
      评论

    “相关推荐”对你有帮助么?

    • 非常没帮助
    • 没帮助
    • 一般
    • 有帮助
    • 非常有帮助
    提交
    评论 2
    添加红包

    请填写红包祝福语或标题

    红包个数最小为10个

    红包金额最低5元

    当前余额3.43前往充值 >
    需支付:10.00
    成就一亿技术人!
    领取后你会自动成为博主和红包主的粉丝 规则
    hope_wisdom
    发出的红包
    实付
    使用余额支付
    点击重新获取
    扫码支付
    钱包余额 0

    抵扣说明:

    1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
    2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

    余额充值