c# - Visual Studio 忙于等待内部操作

标签 c# visual-studio-2015

在调试我的 (WinForms) 应用程序时多次遇到断点,Visual Studio 会在 10-20 秒内没有响应,并且我在右下角收到以下消息 Visual studio is busy: Microsoft Visual studio正在等待内部操作完成。 每次发生这种情况时,我都会看到 Visual Studio Standard Collector 使用了大量 CPU。谁能告诉我这个 Standard Collector 是什么,是否有办法避免这种情况发生?这是在 Windows 10、VS Community 2015 Update 1 上。

最佳答案

这是一个已知错误。

https://connect.microsoft.com/VisualStudio/feedback/details/1630071/visual-studio-standard-collector-unbounded-memory-usage

Posted by Allen [MSFT] on 11/3/2015 at 10:20 AM: Thank you very much for reporting this. We have researched the root cause and have made a fix that will be provided in VS2015 Update 1. Update 1 is due out in coming weeks.

在您更新之前,Allen 建议进行以下修复:

Meanwhile, if you notice that hte process consumes too much memory you have two ways to recover. Simplest is just to restart your machine. That will get everything back to a fresh state. The other thing you can do to alleviate the memory consumption is to stop the Visual Studio Standard Collector Service using the Service Manager UI.

https://social.msdn.microsoft.com/Forums/en-US/cd1d1c57-fbf0-4076-a708-5e9516f359b1/visual-studio-standard-collector-service-disabled-for-productivity-during-debugging?forum=visualstudiogeneral

关于c# - Visual Studio 忙于等待内部操作,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/35412265/

相关文章:

c# - System.Collections.Generic.IEnumerable' 不包含 'ToList' 的任何定义

python - matplotlib-cpp与使用C++的Visual Studio(尤其是3D图)?

visual-studio - Visual Studio 2015 社区安装更新 1 失败

已安装 Android SDK,但缺少 adb.exe

c# - 就像在 Visual Studio 中一样,使用 dotnet CLI 和 VSCode 创建和引用类库

c# - DisplayAttribute - 如何设置默认资源?

c# - 在 Npgsql 中获取数据库列表

c# - Form.ShowDialog() 或 Form.ShowDialog(this)?

c++ - CMake:尝试在 Jenkins Build Machine 上运行时出现 "Linked Library"错误(0xc0000135)

unit-testing - 在VS2015中运行C#单元测试时的延迟非常长