【问题标题】:Regular Time Interval - App Pool Settings定期时间间隔 - 应用程序池设置
【发布时间】:2009-08-13 15:41:35
【问题描述】:

我们的产品服务器上的某个人在我们的应用程序池高级属性中将回收部分中的“常规时间间隔”设置为 0。好吧,我在我们的开发服务器上试过了。我得到这个错误:

应用程序池进程模型的“空闲超时(分钟)”属性必须小于应用程序池周期重启的“常规时间间隔(分钟)”属性。

流程模型部分中的空闲超时值的值为 20,就像我们的产品服务器一样。那么给了什么?我们如何能够在生产中做同样的事情,而不是在这里尝试?您需要指定一个特殊值来强制为零吗?

【问题讨论】:

    标签: iis-7


    【解决方案1】:

    要解决此问题,请禁用常规时间间隔(在 分钟)财产。为此,请使用以下方法之一。

    方法一

    1. Open IIS Manager.
    2. In the Connections pane, expand the server node, and then click Application Pools.
    3. Select the application pool for which you want to change the settings, and then click Recycling in the Actions pane.
    4. Click to clear the Regular time intervals (in minutes) check box.
    5. Click Next, and then follow the instructions to complete the wizard. 
    

    方法二

    1. In the Start Search box, type command prompt, right-click Command Prompt, and then click Run as administrator.
    2. In the Administrator: Command Prompt window, type a command that resembles the following, and then press ENTER:
         cd \windows\system32\inetsrv
    3. Type the following command, and then press ENTER:
         appcmd set apppool /apppool.name:[DefaultAppPool]/recycling.periodicRestart.time:00:00:00
    Note The placeholder [DefaultAppPool] represents the name of the application pool that you want to edit.
    

    来自Microsoft documentation

    【讨论】:

    • 这让我得到了我正在寻找的答案,即如何将间隔分钟设置为 0。奇怪的是,您必须将其指定为时间跨度。我找不到其他任何地方可以清楚地记录 appcmd 用法的此参数值。
    【解决方案2】:

    您设置了定期时间间隔和空闲超时(分钟),以便您可以输入定期时间间隔的值,然后您进入回收设置并停用定期时间间隔(以分钟为单位)

    现在您在常规时间间隔中有 0,但您在空闲超时中的值没有改变

    【讨论】:

      【解决方案3】:

      我没有使用出现此错误的“高级设置”窗口,而是使用了“回收”设置菜单。

      【讨论】:

        【解决方案4】:

        我找到了这篇文章: http://forums.iis.net/t/1160032.aspx

        这是 IIS UI 中的一个错误 - 您必须使用其他方法(appcmd、脚本、powershell、直接编辑配置等)进行设置。

        【讨论】:

          猜你喜欢
          • 2012-02-22
          • 1970-01-01
          • 2023-01-12
          • 1970-01-01
          • 2017-09-06
          • 1970-01-01
          • 1970-01-01
          • 1970-01-01
          • 2023-04-07
          相关资源
          最近更新 更多