gpt4 book ai didi

c# - IIS的DISABLE重叠回收的优缺点

转载 作者:行者123 更新时间:2023-12-03 22:47:33 31 4
gpt4 key购买 nike

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

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

我想,当有人正在向发布的 web 服务发出请求并回收池时,调用会立即被丢弃,但出现异常。我相信?

最佳答案

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

优点是相反的:)

唯一记录的需要设置为 true 的情况解释了 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.

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.

关于c# - IIS的DISABLE重叠回收的优缺点,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/26388833/

31 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com