简体   繁体   English

如何增加IIS 8.5中的输出缓存内存大小?

[英]How to increase Output Cache memory Size in IIS 8.5?

I am getting System.OutOfMemoryException when I run crystal report on web application because of huge file. 由于文件System.OutOfMemoryException ,在Web应用程序上运行Crystal Report时,出现System.OutOfMemoryException

To solve this issue I am trying to increase the size of Caching memory on IIS. 为了解决此问题,我尝试增加IIS上的缓存内存大小。

I saw on this Stack overflow to increase the size. 我在此堆栈溢出中看到增加了大小。 But for me it is disable to change the size like below pic 但对我来说,禁用更改大小如下图所示

图片 .

You can configure the caching setting at the server level in the ApplicationHost.config file or at the site, application, or at the directory level in a Web.config file, using <caching> section. 您可以使用<caching>部分在ApplicationHost.config文件中的服务器级别或站点,应用程序或Web.config文件中的目录级别配置缓存设置。

For example, the following code example sets the maximum output cache size to 1 gigabyte and sets the maximum size of a response that can be stored in the output cache to 512 kilobytes. 例如,以下代码示例将最大输出缓存大小设置为1 GB,并将可以存储在输出缓存中的响应的最大大小设置为512 KB。

<configuration>
   <system.webServer>
      <caching enabled="true" enableKernelCache="true" maxCacheSize="1000" maxResponseSize="512000"/>
   </system.webServer>
</configuration>

NB NB

The element is included in the default installation of IIS 7 and higher. 元素包含在IIS 7和更高版本的默认安装中。

I hope that my answer could help you to achieve your aim. 希望我的回答可以帮助您实现目标。 This link contains a lot of nitty-gritty details and more detailed explanation. 链接包含许多实质性细节和更详细的说明。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM