在“本地主机”上运行网站是非常缓慢的 [英] Running sites on "localhost" is extremely slow

查看:136
本文介绍了在“本地主机”上运行网站是非常缓慢的的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

使用我的本地主机测试网站有真正的麻烦。它运行速度非常慢!有时需要花费一分钟来加载一个页面。我正在使用Firefox,我正在测试的网站在我办公室的本地机器/生产服务器上的其他开发人员上运行良好。



事情:
$ b


  1. 禁用IPv6

  2. 未在调试模式下运行
  3. 将站点放置在IIS 6上最高的应用程序池(高隔离度)中。

  4. 取得防火墙等。

这个问题似乎只发生在代码隐藏中包含某些.net代码形式的页面时。



请注意,一个模糊的主题/刺在黑暗中的一点点,但将不胜感激任何形式的建议 - 这是可怕的等待一分钟刷新每一次尝试一个改变!

干杯, Sean。

解决方案

我对PHP有同样的问题。我解决了这个问题,通过在数据库连接参数中将localhost更改为127.0.0.1,就像这里提供的一样: https://serverfault.com / a / 444338/62739 。我认为这可能也适用于您,请试一试。


Having real trouble using my localhost to test sites. It runs extremely slowly! Sometimes it takes up to a minute to load a page. I'm using Firefox and the sites I'm testing run fine on other developers in my office's local machines / on the production server.

I've gone through the normal things :-

  1. Disabled IPv6
  2. Not running in debug mode
  3. Put the site in the highest app pool (High Isolated) on IIS 6.
  4. Taking of firewalls etc.

The problem only seems to occur when hitting pages which contain some form of .net code in the code-behind.

Appreciate that this a little bit of a vague topic / stab in the dark but would appreciate any sort of advice - it's horrible waiting a minute each refresh to try out a change!

Cheers, Sean.

解决方案

I had the same problem with PHP. I solved it by changing "localhost" to "127.0.0.1" in database connection parameters like someone suggested here: https://serverfault.com/a/444338/62739 . I think it may work for you too, give it a try.

这篇关于在“本地主机”上运行网站是非常缓慢的的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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