IIS的DISABLE重叠回收的缺点和优点 [英] Disadvantages and Advantages of DISABLE overlapped recycle of IIS

查看:732
本文介绍了IIS的DISABLE重叠回收的缺点和优点的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

IIS的DISABLE重叠回收的缺点和优点是什么?

Whats the disadvantages and advantages of DISABLE overlapped recycle of IIS ?

默认情况下,选项Disable Overlapped Recyclingfalse,我需要将其更改为true,但是我不知道这样做的缺点是什么,并且没有找到任何文档专门说明此缺点.

By default the option Disable Overlapped Recycling is false, I need to change this to true but I don't know whats the disadvantages of this and I did not find any documentation saying specifically about this disadvantages.

我想象,当有人在对发布的Web服务的请求中并回收池时,该呼叫会立即被异常丢弃.我确定吗?

I imagine that when someone is in the middle of a request to the webservice published, and recycle the pool, the call is dropped immediately with an exception. I am sure?

推荐答案

将其设置为true的缺点是,在回收应用程序池时,您的网站将关闭.

The disadvantages of setting that to true is that your site will be down while recycling the app pool.

优势相反:)

解释了唯一需要将其设置为true的情况,此处

The only documented situation where that needs to be set to true is explained here

回收应用程序时,会话状态可能会丢失.在重叠的循环过程中,也有可能发生多重实例化.

When applications are recycled, it is possible for session state to be lost. During an overlapped recycle, the occurrence of multi-instancing is also a possibility.

会话状态丢失:许多IIS应用程序都依赖于存储状态的能力.如果IIS 6.0自动关闭由于空闲处理而超时的工作进程,或者在回收期间重新启动工作进程,则IIS 6.0可能会导致状态丢失.

Loss of session state: Many IIS applications depend on the ability to store state. IIS 6.0 can cause state to be lost if it automatically shuts down a worker process that has timed out due to idle processing, or if it restarts a worker process during recycling.

发生多实例:在多实例中,一个流程的两个或更多实例同时运行.根据应用程序池的配置方式,有可能运行一个工作进程的多个实例,每个实例可能加载并运行相同的应用程序代码.重复循环的发生是多重实例化的一个例子,例如, 不管回收设置如何,哪个或两个以上的进程为应用程序池服务.

Occurrence of multi-instancing: In multi-instancing, two or more instances of a process run simultaneously. Depending on how the application pool is configured, it is possible for multiple instances of a worker process to run, each possibly loading and running the same application code. The occurrence of an overlapped recycle is an example of multi-instancing, as is a Web garden in which two or more processes serve the application pool regardless of the recycling settings.

如果您的应用程序不能在多实例环境中运行,则必须为应用程序池仅配置一个工作进程(这是默认值),并且如果正在使用应用程序池回收,则必须禁用重叠的回收功能.

If your application cannot run in a multi-instance environment, you must configure only one worker process for an application pool (which is the default value), and disable the overlapped recycling feature if application pool recycling is being used.

这篇关于IIS的DISABLE重叠回收的缺点和优点的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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