如何有效地增加IIS 7中应用程序池的内存和缓存大小 [英] How to increase memory and cache size for application pool in IIS 7 efficiently

查看:2687
本文介绍了如何有效地增加IIS 7中应用程序池的内存和缓存大小的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经在互联网上搜索了如何增加IIS 7中应用程序池的内存和缓存大小,但所有主题都是分散的,我不知道将这些设置组合在一起的效果。

I have searched the internet for how to increase memory and cache size for application pools in IIS 7 but all topics are diffused and I don't know the effect of combining those settings together.

有人可以描述如何增加IIS 7中应用程序池的内存和缓存大小吗?

Can somebody describe how I can increase memory and cache size for application pools in IIS 7?

推荐答案

In我的理解输出缓存只能在IIS级别设置,而不是专门为应用程序池设置。 IIS级别设置的任何内容都适用于其下的所有网站。因此,您可以在Web应用程序级别应用最大缓存大小。

In my understanding output cache can be set only at the IIS level and not specifically for an application pool. Whatever is set at the IIS level is applied to all the web sites under it. So effectively you can apply a max cache size at the web application level.

如果您使用的是Windows 7专业版(IIS功能因操作系统而异) IIS管理器并单击服务器名称,在功能视图中有一个输出缓存功能。您可以编辑它以设置最大缓存大小。如果将其设置为非常高的值,则会占用大量内存,并且可能会降低整个盒子的性能。

If you are using windows 7 professional (IIS features vary depending on the operating system) if you open IIS manager and click on the server name, in the features view there is an Output Caching feature. You can edit that to set the max cache size. If you set it to a very high value, it will use up a lot of your RAM and could deteriorate the performance of the whole box.

应用程序池本身可以具有专用内存限制和虚拟内存限制。

THe application pool itself can have a private memory limit and a virtual memory limit.

主内存限制:在导致应用程序池回收之前,工作进程可以使用的最大专用内存量(以KB为单位)。

Primary memory limit: Maximum amount of private memory (in KB) a worker process can consume before causing the application pool to recycle.

虚拟内存限制:在导致应用程序池回收之前,工作进程可以使用的最大虚拟内存量(以KB为单位)。

Virtual memory Limit: Maximum amount of virtual memory (in KB) a worker process can consume before causing the application pool to recycle.

默认情况下,上述设置都设置为0,这意味着没有设置限制。

Both the above settings are set to 0 by default, which means there is no limit set.

长话短说:在IIS服务器级别提高输出缓存大小是满足您需求的最佳选择。

这篇关于如何有效地增加IIS 7中应用程序池的内存和缓存大小的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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