据我所知,IDLE超时仅在startMode=OnDemand
时才有效,但是我在事件日志中发现了以下消息:
A worker process with process id of '2556' serving application pool 'xxxx' was shutdown due to inactivity. Application Pool timeout configuration was set to 20 minutes. A new worker process will be started when needed.
我将超时设置为5分钟以帮助我找到目标设置,看来startMode=AlwaysRunning
期间IDLE计时器仍然有效。
我还发现该应用程序池的新工作进程立即启动,但是我期望该应用程序池不会每5分钟回收一次。有人知道发生了什么吗?