[英]ASP.NET MVC. Application takes too long to respond when there are no active users using
When the application is being used all the time, the responses seem to be much faster.当应用程序一直在使用时,响应似乎要快得多。
For example, if you have active users in the application, making requests to the server, when I access the application, i am instantly taken to the login screen, but if no one has used it for a certain period of time, it seems that the server is hibernating for have no activity and takes too long to answer.例如,如果您在应用程序中有活跃用户,向服务器发出请求,当我访问该应用程序时,我会立即被带到登录屏幕,但如果一段时间内没有人使用它,似乎服务器正在休眠,因为没有活动并且需要很长时间才能回答。
Is this kind of problem normal, because no one is using it or do I have to make a configuration on the server or in the code to solve this?这种问题是否正常,因为没有人使用它还是我必须在服务器或代码中进行配置才能解决这个问题?
am the .net fremawork 4.6.1是 .net fremawork 4.6.1
Sounds like IIS is putting recycling the application to free resources, you can change the timeout and recycling policy like so:听起来 IIS 正在回收应用程序以释放资源,您可以像这样更改超时和回收策略:
In order to cancel IIS Timeout and recycling, follow these steps:为了取消 IIS 超时和回收,请按照下列步骤操作:
Cancel Idle Time-out:取消空闲超时:
Cancel IIS Recycling :取消 IIS 回收:
Then just Restart the IIS然后只需重新启动IIS
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.