我们有一个相当大的ASP.NET MVC应用程序,我在Visual Studio 2012年的工作在Win 8我有重新编译后缓慢的页面加载时间一个奇怪的问题。通常情况下,实际建造时间约为5秒,然后在浏览器中打开了,它需要1-2分钟来加载页面。
We have a reasonably large ASP.NET MVC app that I work on in Visual Studio 2012 on Win 8. I have a strange issue with slow page load times after recompilation. Usually, the actual build time is about 5 seconds, then the browser opens up and it takes 1-2 minutes to load the page.
几点:
- 它加载慢慢地我是否更改视图或完全重新编译项目
- 这不是一个性能问题,其他一切作品真的很好,有足够的RAM等。
- 这种事只与IIS防爆preSS。当我切换到默认的开发服务器,它工作正常。
- 所有其他在我的团队开发者使用IIS防爆preSS,但他们没有这个问题。
- 我试着重新安装IIS,并使用V7.5,而不是V8和重建的所有配置文件。没有运气。
- 我试图禁用所有扩展,显然这并没有影响加载时间了。
- 没有什么不正常的在任务管理器
- 这是一个虚拟机上我的MacBook Pro,但同样 - 这不是一个性能问题 。
还有什么可以我尝试?
推荐答案通过关闭Windows Defender的服务解决。一切都是快一百倍了。
Solved by turning off Windows Defender Service. Everything is a hundred times faster now.
更新:我失败了,为什么Windows Defender的是使用大量的CPU功率pretty的所有的时间找到一个理由。我想谷歌它和事实证明,很多人都在Win 8类似的问题没有很好的解决方案。
UPDATE: I failed to find a reason why Windows Defender is using lots of CPU power pretty much all the time. I tried to google it and it turns out that many people have a similar problem on Win 8 with no good solution.
如果你真的要离开后卫,你可以添加项目文件夹路径作为一个例外,但它仍然将是缓慢的杂交。
If you really want to leave Defender on, you can add the project folder path as an exception, but it still will be slow-ish.
希望它可以帮助别人。
更新2:上面仍然特别是如果你在一个虚拟机(我在Mac上运行的Parallels中)上运行它拥有在Windows 10真。整体速度的提升,不仅页面刷新时间,是非常明显的。
UPDATE 2: The above still holds true in Windows 10. Especially if you're running it in a virtual machine (I run it in Parallels on Mac). The overall speed increase, not only page refresh times, is very noticeable.
更新3:显然的Windows Defender有自己默默再次义无反顾的习惯。因此,要警惕这一点。
UPDATE 3: Apparently Windows Defender has a habit of silently turning itself back on again. So, be wary of that.
更多推荐
在开发过程中缓慢的页面刷新时间
发布评论