简体   繁体   English

Visual Studio 2013中的IIS高CPU使用率

[英]IIS High CPU Usage in Visual Studio 2013

When we use Visual Studio 2013 for web development, we experience the following issues while debugging: 当我们使用Visual Studio 2013进行Web开发时,调试时会遇到以下问题:

  1. Web application takes a very long time to load Web应用程序加载时间很长
  2. Client scripts take a long time to load 客户端脚本需要很长时间才能加载
  3. CPU usage by the IIS worker process increases enormously while debugging the application 在调试应用程序时,IIS工作进程的CPU使用量将大大增加

Changing to a local IIS does not solve these problems. 更改为本地IIS不能解决这些问题。

What's going on here? 这里发生了什么?

According to this site https://www.devexpress.com/Support/Center/Question/Details/T102322 根据此网站https://www.devexpress.com/Support/Center/Question/Details/T102322

In Microsoft Visual Studio 2013, the Browser Link feature was introduced. 在Microsoft Visual Studio 2013中,引入了浏览器链接功能。 It provides dynamic exchange between IDE and any open browser on your machine. 它提供了IDE与计算机上任何打开的浏览器之间的动态交换。 With the help of this feature, you can test changes in page markup in browsers on the fly, inspect HTML objects, etc. However, the use of this feature might cause abovementioned problems in the debugging process. 借助此功能,您可以即时在浏览器中测试页面标记的更改,检查HTML对象等。但是,使用此功能可能会在调试过程中引起上述问题。

A common solution is to disable Browser Link in Visual Studio: 常见的解决方案是在Visual Studio中禁用浏览器链接:

在此处输入图片说明

For me, this was happening because I use Resharper and have a big file oppened (30k lines). 对我来说,发生这种情况是因为我使用Resharper并选择了一个大文件(3万行)。 I just disable resharper for some specific files. 我只是禁用某些特定文件的重新共享。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM