如何在IIS 7中防止/延长idleTimeout? [英] How to prevent/extend idleTimeout in IIS 7?
问题描述
在IIS7中,可以在应用程序池中设置 processModel.idleTimeout
属性。但是,我使用 Application_Start
来运行一个数字,它会在一个指定的时间段后关闭。
<的工作。
在IIS 7中,正常时间间隔 ( periodicRestart
)指定进程回收发生的时间,必须大于 idleTimeout
。
如果我为 idleTimeout
和 periodicRestart
设置较大的值,
为了避免我的应用程序退出并且安全,我已将idleTimeout配置为0和periodicRestart为默认值(1740分钟)。
使用此配置几天后,我还没有发现问题。该应用程序不退出,它是相当安全,1740分钟后,它会重新启动。
In IIS7, the processModel.idleTimeout
property can be set in an application pool. A worker process will shut down after this specified period of inactivity.
However, I use Application_Start
to run a number of jobs. If there is no visitor to the website the jobs would be disposed and will not run on time.
In IIS 7, the Regular Time Interval (periodicRestart
), that specifies when process recycling happens, must be bigger than the idleTimeout
.
Is it safe enough if I set larger values for the idleTimeout
and periodicRestart
?
In order to avoid my application exiting and to be on the safe side, I have configured the idleTimeout to 0 (infinity) and periodicRestart to the default value (1740 minutes).
After a few days working with this configuration, I haven't found problems so far. The application doesn't quit and it is quite safe that after 1740 minutes it will restart.
这篇关于如何在IIS 7中防止/延长idleTimeout?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!