问题:
IIS 为优化服务器性能,会自动对它认为休眠的应用程序进行资源回收,资源回收将会导致网站应用程序关闭。
解决方案:
1、 设置闲置超时为0,固定回收时间间隔为0,即IIS不主动回收闲置进程
Ref:One way to conserve system resources is to configure idle time-out settings forthe worker processes in an application pool. When these settings are configured,a worker process will shut down after a specified period of inactivity. The default value for idle time-out is20 minutes.
Ifyou have a just a few sites on your server and you want them to always loadfast then set this to zero.
2、并设置每天固定凌晨2:00(错开访问高峰)回收进程,且在虚拟内存和专用内存占用超过1G(服务器16G内存)时回收进程,防止内存溢出。设置1G是基于目前CRM工作线程内存占用普遍不高,