ASP.NET缓存最大尺寸 [英] ASP.NET cache maximum size

查看:77
本文介绍了ASP.NET缓存最大尺寸的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

什么是ASP.NET缓存的最大尺寸(无论是部署在单个服务器上或缩小的进程上的Web农场),你可以有?

What's the maximum size of ASP.NET cache (either deployer on a single server or out-of-process on a Web farm) you can have?

如果有你可以ASP.NET有多大缓存有一个限制,是否有一种变通方法,以增加该限制?

If there is a limit on how big ASP.NET cache you can have, is there a workaround to increase that limit?

谢谢
詹姆斯

推荐答案

这取决于你有多少内存,还可以将IIS / ASP.Net配置。

It depends on how much memory you have and also your IIS / ASP.Net configuration.

结帐href=\"http://msdn.microsoft.com/en-us/library/ms998549.aspx#scalenetchapt06_topic14\">缓存MSDN文章中解释部分的

Checkout the Caching Explained section in this MSDN article. It's old, but explains some of the guidelines.

ASP.NET缓存修剪开始基于一个LRU算法缓存并分配到项目后,内存消耗为配置的内存限制的20%以内的CacheItemPriority枚举值。如果存储器限制被设置得高,这是可能的方法中意外地回收。您的应用程序也可能感受到了内存不足的异常。如果内存限制设置得太低,就可能增加所花费的时间执行垃圾收集的量,从而降低整体性能。

The ASP.NET cache starts trimming the cache based on a LRU algorithm and the CacheItemPriority enumerated value assigned to the item after memory consumption is within 20 percent of the configured memory limit. If the memory limit is set too high, it is possible for the process to be recycled unexpectedly. Your application might also experience out-of-memory exceptions. If the memory limit is set too low, it could increase the amount of time spent performing garbage collections, which decreases overall performance.

本论坛的帖子也非常丰富...

This forum post is also very informative...

<一个href=\"http://forums.asp.net/p/962451/1199949.aspx\">http://forums.asp.net/p/962451/1199949.aspx

这篇关于ASP.NET缓存最大尺寸的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆