2009-08-13 56 views
1

我們的prod服務器上的某人已將我們的應用程序池高級屬性中「回收」部分中的「常規時間間隔」設置設置爲0。那麼,我在我們的開發服務器上嘗試過。並且出現此錯誤:定時時間間隔 - 應用程序池設置

應用程序池的進程模型的'空閒超時(分鐘)'屬性必須小於應用程序池的週期重新啓動的'常規時間間隔(分鐘)'屬性。

過程模型部分中的空閒超時值的值爲20,就像我們的prod服務器一樣。那麼是什麼給了?我們如何能夠在生產中做同樣的事情,而不是在此嘗試?你需要指定一個特殊的值來強制一個零嗎?

回答

1

您設置固定時間間隔和空閒超時(分鐘),這樣就可以進入你的一定時間間隔值,之後你去回收設置和取消固定的時間間隔(以分鐘爲單位)

現在你在固定的時間間隔有0,但您在空閒超時值不會改變

0

我發現這篇文章: http://forums.iis.net/t/1160032.aspx

This is a bug in the IIS UI - you will have to set it using some other method (appcmd, scripting, powershell, directly editing configuration etc).

1

而不是使用「高級硒ttings「窗口,我得到了這個錯誤,我使用了」Recycling「設置菜單。

1

To work around this problem, disable the Regular Time Interval (in minutes) property. To do this, use one of the following methods.

Method 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. 

Method 2

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