我们的产品服务器上的某人在我们的应用程序池高级属性中将“回收”部分中的“定期时间间隔”设置设置为 0。好吧,我在我们的开发服务器上尝试过。我收到此错误:
应用程序池进程模型的“空闲超时(分钟)”属性必须小于应用程序池周期重新启动的“常规时间间隔(分钟)”属性。
Process Model 部分中的 Idle Time-out 值为 20,就像我们的产品服务器一样。那么什么给出呢?我们如何能够在生产中做同样的事情,但在这里的尝试却不能呢?您是否需要指定一个特殊值来强制为零?
要解决此问题,请禁用常规时间间隔(以分钟为单位)属性。为此,请使用以下方法之一。
方法一
Run Code Online (Sandbox Code Playgroud)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.
方法2
Run Code Online (Sandbox Code Playgroud)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.
来自微软文档。