Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do I decrease first load time in ASP.net MVC 2?

I have an ASP.net MVC 2 application that runs well locally. However when I move the files to my production server, I get a first time lag of about 30 seconds, I assume this is a first compile. After that the application works fine. Then after about 20-30 minutes of non use, the applications takes another 30 seconds or so to load.

I did try to precompile the code, but there is still a lag during the first load.

Are there any trick to getting the application to work faster on the first load?

I am using ASP.net 3.5, IIS 6 , visual studio 2010, MVC 2.

Thanks

like image 634
Bill Avatar asked Jan 10 '11 20:01

Bill


1 Answers

Scott Gu has a good blog post here

EDIT:

There is a similar post here on serverfault, which might be useful.

like image 98
VoodooChild Avatar answered Sep 26 '22 09:09

VoodooChild