ASP.NET MVC应用程序运行多长时间

时间:2022-11-01 04:12:33

I wonder how long will an ASP.NET (MVC) application run, when no new requests come in? Lets say I'm using an IOC Container ans have a Singleton Object serving to the clients. As far as I know it will serve different page requests. But how long will it live when no new request come in? Is there any timeout (maybe configured through IIS) that says when my app will shut down?

我想知道当没有新请求进入时,ASP.NET(MVC)应用程序会运行多长时间?假设我正在使用IOC容器,并且有一个Singleton Object为客户端服务。据我所知,它将提供不同的页面请求。但是没有新的请求进来会活多久?是否有任何超时(可能通过IIS配置)说我的应用程序何时关闭?

1 个解决方案

#1


5  

Typically it will run for 20 min because that is the default value for IIS7. You can configure that value, however.

通常它会运行20分钟,因为这是IIS7的默认值。但是,您可以配置该值。

#1


5  

Typically it will run for 20 min because that is the default value for IIS7. You can configure that value, however.

通常它会运行20分钟,因为这是IIS7的默认值。但是,您可以配置该值。