输出缓存生成 OutOfMemoryException
当内存达到系统总内存的 50% 时,我在网站中收到 OutOfMemoryException。通过调查内存,我发现我的问题与输出缓存条目的增长率有关(几乎每个页面都有自己的输出缓存,具体取决于 url 参数)。
在网上搜索时,我看到了有关 web.config 部分的一些约定,特别是 privateBytesLimit 和 PercentagePhysicalMemoryUsedLimit 属性,它们处理缓存开始刷新过期项目并尝试回收内存的阈值。但我不明白此时是否也会抛出异常。
但我不确定这些属性的最佳和安全值。有人有关于这些价值观的信息吗?
提前致谢!
I'm getting OutOfMemoryException in my website when memory reaches 50% of total system memory. Investigating the memory I've found that my problem concern on the growing rates of Output Cache entries (Almost every page has it's own output cache varying by url parameters).
Searching on the web I saw some appointments about the section at web.config, specially on the privateBytesLimit and percentagePhysicalMemoryUsedLimit attributes, that deals with the threshold values to cache start flushing expired items and attempting to reclaim memory. But I din't understood if at this point the exceptions will be thrown too.
But I'm not sure about best and secure values to put at these attributes. Someone has informations about these values?
Thanks in advance!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
http://www.iis.net/ConfigReference/system.webServer/caching
干杯。
http://www.iis.net/ConfigReference/system.webServer/caching
Cheers.