如何找出为什么我的本地主机的网站需要很长时间来加载? [英] How to figure out why my local host site takes so long to load?

查看:141
本文介绍了如何找出为什么我的本地主机的网站需要很长时间来加载?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我今天和昨天注意到,本地主机上运行我的网站是非常缓慢的。我很怀疑这是一个code问题,因为当我把它挂在我的直播现场它去快。

I noticed today and yesterday that running my site on local host is very slow. I highly doubt this is a code issue as when I put it up on my live site it went fast.

例如

一个页面上的本地主机调试模式(F5)开的44秒

A page on local host debug mode(F5) takes 44 seconds

在我的直播网站在同一页面需要的2秒

The same page on my live site takes 2 seconds

在本地主机,但不是在调试模式(Ctrl + F5)在同一个页面需要的4秒

The same page on local host but not in debug mode(ctrl + F5) takes 4 seconds

所以我不知道什么是与我的调试器,但它减缓了网站抓取。

So I am not sure what is up with my debugger but it slows the site to a crawl.

我有视觉工作室2010旗舰版。

I have visual studios 2010 Ultimate edition.

我想这是因为一些插件像(ReSharper的,生产工具等)。所以我卸载的每一个插件我了。

I thought it was because of some plugin like (resharper, productivity tools and etc). So I uninstalled every single plugin I had.

我试图使一个新的asp.net MVC 3项目,它加载了快调试模式。我也采取了完全相同的code,扔在运行VS 2010终极另一台计算机,它加载了快。

I tried making a new asp.net mvc 3 project and it loads up fast in debug mode. I also took the exact same code and threw it on another computer that runs VS 2010 Ultimate and it loads up fast.

所以,我不知道下一步该怎么做测试。

So I am not sure what to do next to test.

推荐答案

什么浏览器,你调试呢?

What Browser are you debugging with?

我在Firefox上运行我的网站类似的问题3+(Win7的)。

I had similar issues running my site in FireFox 3+ (Win7).

这是解决了进入关于:配置如果Firefox和设置的 network.dns.disableIPv6 以真

This was resolved by going into about:config if FireFox and setting network.dns.disableIPv6 to true.

这篇关于如何找出为什么我的本地主机的网站需要很长时间来加载?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆