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

查看:31
本文介绍了如何有效地增加 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?

推荐答案

据我了解,输出缓存只能在 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 管理器并单击服务器名称,则在功能视图中有一个输出缓存功能.您可以对其进行编辑以设置最大缓存大小.如果将其设置为非常高的值,则会占用大量 RAM,并且可能会降低整个机箱的性能.

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天全站免登陆