如何在IIS 7中防止/延长idleTimeout? [英] How to prevent/extend idleTimeout in IIS 7?

查看:1427
本文介绍了如何在IIS 7中防止/延长idleTimeout?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在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屋!

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