gpt4 book ai didi

iis - 输出缓存总命中数未反射(reflect)在 IIS 性能监视器中

转载 作者:行者123 更新时间:2023-12-01 23:25:26 25 4
gpt4 key购买 nike

我们在 Web.Config 中使用输出缓存配置文件,如下所示:

    <caching>
<outputCacheSettings>
<outputCacheProfiles>
<clear />
<add name="CacheHourly" location="Server" duration="3600" varyByParam="*" varyByCustom="IsMobile" />
<add name="CacheDaily" location="Server" duration="86400" varyByParam="*" varyByCustom="IsMobile" />
</outputCacheProfiles>
</outputCacheSettings>
</caching>

perfmon 中,我们在输出缓存计数器中看到 100% 未命中(无命中)。我们基本上看到输出缓存计数器全部为 0(未命中除外)。

请参阅下面的屏幕截图。

Snapshot of performance monitor counters for Output Cache

最重要的是我相当确定它已启用。如果我将 enabled="false" 添加到每个输出缓存配置文件,然后点击目标页面,它将在 300 毫秒内一致返回。如果我保持启用它们,它将始终在 90 毫秒内返回,这不是 super 快,但始终快于 300 毫秒。

编辑:我认为输出缓存 * 计数器是正确的计数器是错误的吗? URI 缓存计数器似乎具有更高的命中率,但我认为这仅适用于 IIS URI 元数据。

最佳答案

希望您已浏览过这些链接。 https://serverfault.com/questions/448942/why-is-iis-7-5-flushing-file-cache-very-oftenhttp://www.iis.net/configreference/system.webserver/caching .

它说,您需要使用 <caching enabled="true" enableKernelCache="true">

但它也说,这个属性默认为 true,但我还是想说,尝试一下!

关于性能计数器,您正在研究正确的指标。 https://www.microsoft.com/technet/prodtechnol/WindowsServer2003/Library/IIS/852720c8-7589-49c3-a9d1-73fdfc9126f0.mspx?mfr=true

关于iis - 输出缓存总命中数未反射(reflect)在 IIS 性能监视器中,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/25676726/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com