The first request is very slow after the website is idle with ASP.NET MVC 3 (IIS7)

I developed the project in ASP.Net MVC 3, my hosting uses iis7 (Win Web Serv 2008 R2), and the first request after the site is down (about 1-2 hours) is very slow.

I am using a VPS with 512 MB of RAM. Could this be due to too little RAM?

Can someone help me with possible reasons for this behavior?

+4
source share
2 answers

After some inactivity, IIS unloads the AppDomain. And then the first request loads the application again, which is slower. You can try to configure this period in the IIS properties, but there may be other reasons why the application is unloaded, for example, a certain CPU or memory usage threshold. These thresholds are also configured in IIS.

This is not something specific for ASP.NET MVC. This is true for all ASP.NET applications in general.

+10
source

We also had a problem with the ruby ​​and the passenger, who after some time will remove the application from memory, but I found a nice application that fixed this problem for us, without changing anything in the server configuration, the application is called wekkars, and you can find it here: http://www.wekkars.com

0
source

Source: https://habr.com/ru/post/1414082/


All Articles