zoukankan      html  css  js  c++  java
  • Hardware Monitoring & Trouble Shooting: take care of system cache

    Just read from the SAP Performance Optimization Guide that when we do hardware monitoring and optimization, we should mind the ‘system cahce’. and as the book said, I didn’t find the corresponding configuration path on our internal server, which finally made me ask help from google and the following interesting story really helped me to understand why we should always keep in mind that system cache might be the trouble maker.

    Limiting system cache size in Windows Server 2003 By Kelvin Tan

    On a consulting gig, I was recently asked to investigate a strange problem with a Lucene server on Windows Server 2003.

    The Lucene index was periodically refreshed by running a new instance of the app, then killing the old one via “taskkill”. Worked fine, except the available memory displayed by Task Manager somehow steadily decreased with every app refresh, and it would run out of memory every 2-3 days. However, just by killing _all_ java processes, the memory would be magically reclaimed and available memory would immediately jump up to the correct amount.

    Well, turns out that the culprit was Windows’ file system cache, and the default Windows Server 2003 settings which gives priority to the System Cache over application processes. So we ended up with a huge file system cache and not enough memory to start a new application process.

    Here are some links which were helpful in troubleshooting this problem, and its eventual solution.

    Initially I was trying to find where the missing memory went, since the “Available physical memory” value didn’t match process totals given to me by the “Processes” tab.
    Everything you always wanted to know about Task Manager but were afraid to ask helped me determine that “Commit Charge” was what I was really interested in, and that value did indeed match process totals. So it wasn’t some memory leak then.

    After taking another look at Task Manager, I realized the biggest culprit was System Cache.

    http://smallvoid.com/article/winnt-system-cache.html gives an overview of the Windows system cache, and, in particular, lists these tools:

    Both CacheSet and SetSystemFileCacheSize worked in setting an upper limit on the file cache size, and that solved our problem of the missing memory.

  • 相关阅读:
    apicloud教程
    apicloud教程3 (转载)
    apicloud教程2 (转载)
    apicloud教程1 (转载)
    API CLOUD 快捷键
    JS IIFE写法
    php事件驱动
    JQuery实践--Why JQuery
    Jquery实践--精读开篇
    python 实践--新闻聚合
  • 原文地址:https://www.cnblogs.com/rabbitzhang/p/1519523.html
Copyright © 2011-2022 走看看