我有一个托管有https://www.blacknight.com/的ASP.NET网站。
每当我在浏览器中浏览我的网站时,最多可能需要10秒才能显示。
如何确定瓶颈在哪里? 我如何确定其托管网站是否有故障,或者是否由于我自己的网站? 有没有我可以使用的工具等
答案 0 :(得分:1)
将ASP.NET网站部署到托管提供程序时,应用程序可能会变为空闲状态,并在共享环境中从内存中卸载。由此产生的行为是任何" new"在网站闲置一段时间后访问该网站会导致在重新提供服务之前重新编译Web应用程序。
通常托管服务提供商提供某种形式的"始终在"您的网站的选项,以防止此行为。否则,对于不经常访问的网站,此行为与课程相同。
根据您的托管服务提供商,他们可能会尊重您的web.config条目以允许"始终开启"在IIS中。您可以找到有关此方法的更多信息here
希望这是有道理的。对于共享环境中较低流量的网站来说,这是非常常见的。
答案 1 :(得分:0)
Well just from looking at your code, you need to change some stuff
First, load the scripts at the end of the body to allow the website to load faster.
One of your CSS if called upon after the body tag, call it inside the head tag.
Also do a resource speed test. Do this easily by going on Google Chrome. Right click, select inspect element, then select Network. Press the red button and reload the page. This will show you how fast the resources are loading. There are also test on pingdom which will show you how fast your website loads and the score of it, it also compares your website to other websites.
But this all may not be the case, it just may be your server. Get a dedicated server with at least 10mpbs. You can also get Cloudflare to speed up the process. Also consider using a CDN to load your website faster.
Good Luck