Website first load too slow

梦想的初衷 提交于 2019-12-11 10:16:15

问题


My websites (HTML and ASP.NET MVC) are hosted on a IIS 7.5 VPS their first load is always too slow, even requested from localhost, then navigation speed between the web sites pages is good.
please what to do to increase first load speed?


回答1:


U can always set the Idle Time-out of the application pool to 0 which is default 20 minutes. It's under advanced settings. That way the first load won't be often.




回答2:


First load tends to require a compilation of webpages (aspx or razor). You can precompile these. Also, if you have a database repository, often this gets initialized on first load, and depending on whats been done there, this also can be slow. ( but most often can be optimized )




回答3:


A would check the page load with Trace.


Yeah, Keith is right.



来源:https://stackoverflow.com/questions/9456994/website-first-load-too-slow

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!