IIS主目录路径的更改是否会触发重启? [英] Will a Change to the IIS Home Directory Path Trigger a Restart?

查看:103
本文介绍了IIS主目录路径的更改是否会触发重启?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在IIS(特定于6.0)中,在主目录选项卡下,如果我更改本地路径,是否会导致IIS重新启动或应用程序池重新启动?

In IIS (6.0 specifically), under the Home Directory tab, if I change the local path, will this cause either IIS to restart or the application pool to recycle?

相关,是否有一个引用概述了IIS元数据库的哪些更改将触发重新启动或应用程序池回收?我还没有找到这个。

Related, is there a reference that outlines which changes to the IIS metabase will trigger either a restart or app pool recycle? I haven't been able to find this yet.

推荐答案

在主目录路径中更改网站的路径不会导致工作进程重新启动。但是,它会导致网站的应用程序域拆除并重新启动。

Changing the path to a website in the Home Directory path won't cause the worker process to restart. It will however cause the Application Domain for the website to tear down and restart.

工作进程重启可能是由许多事件引起的,最常见的是:

Worker process restarts can be caused by a number of events, most commonly:


  1. 如果
    应用程序池属性的回收选项卡上的任何条件

    符合。

  1. If any of the conditions on the Recycling tab of an Application Pool's properties are met.

如果启用CPU监控(在应用程序池的属性性能选项卡中)并且满足一个
的监控阈值,
和,如果将所需操作设置为
即可关闭。

If CPU monitoring (in an application pool's properties Performance tab) is enabled and one of the monitoring thresholds is met, and, if the required action is set to Shutdown.

由$ b抛出的未经检查的异常会发生灾难性错误,例如
$ b你的代码在不同于当前请求线程
的线程上。

There is a catastrophic error such as an unchecked exception thrown by your code on a different thread than the current request thread.

IISRESET

您手动强制循环或停止并启动应用程序池

You manually force a recycle or stop and start the application pool

还应注意应用程序池回收与重新启动不同。当应用程序池回收时,IIS将启动一个新的工作进程。所有新请求都将发送到此新进程。现有的工作进程将继续运行,但在完成所有未完成的请求或达到关闭时间限制后将被拆除。

It should also be noted that an application pool recycle is different from a restart. When an application pool recycles, IIS starts a new worker process. All new requests are sent to this new process. The existing worker process is kept running but will be torn down after all outstanding requests are completed or the shutdown time limit is reached.

现有的ASP.NET会话保留在旧的工作进程中,直到它们被放弃。这确保了在回收时不会丢失ASP.NET会话状态,即如果仍有ASP.NET会话,则匹配这些会话的请求将路由到旧的工作进程。不幸的是,经典的ASP会话丢失了,因为ASP没有相同的功能。

Existing ASP.NET sessions are retained in the old worker process until they are abandoned. This ensures ASP.NET session state is not lost upon a recycle, i.e. if there are still ASP.NET sessions, the requests matching those sessions will be routed to the old worker process. Classic ASP sessions are unfortunately lost because ASP doesn't have this same capability.

这篇关于IIS主目录路径的更改是否会触发重启?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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