简体   繁体   English

如何模拟由于超时导致的IIS App-Pool关闭

[英]How to simulate IIS App-Pool shutdown due to timeout

I am facing an error in production due to IIS application pool shutdown during App-pool time out. 由于App-pool超时期间IIS应用程序池关闭,我在生产中遇到错误。

I want to reproduce the scenario in my local machine, however even if set low application pool time-out (5 minutes or 1 minute), it doesn't shutdown. 我想在本地计算机上重现该方案,但是即使设置较低的应用程序池超时(5分钟或1分钟),它也不会关闭。

If I shutdown the application pool in the IIS user interface, it doesn't serve new requests. 如果我在IIS用户界面中关闭了应用程序池,则它不会处理新请求。 I want to simulate the scenario how it is shutdown and awake automatically when a new request comes in. 我想模拟这种情况,当有新请求出现时,它是如何关闭并自动唤醒的。

Thanks in advance, Pandiarajan. 在此先感谢Pandiarajan。

Instead of issuing a Stop command, use "Recycle". 而不是发出停止命令,而是使用“回收”。 This will create a new instance of the AppPool and shutdown the old one. 这将创建一个新的AppPool实例并关闭旧实例。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM