时间:2017-05-17 标签:c#visual studio 2017CPU profilingout of memory异常

2024-01-06

我有一个长时间运行的 C# 应用程序,正在 Visual Studio 2017 社区版中对其进行分析。运行大约 2/3 小时,然后我停止分析(和应用程序)以查看 CPU 使用情况。但是我可以看到,在构建报告时,内存使用量增加了 3GB,然后抛出内存不足异常。

Profiling started.
Profiling process ID 7312 (test).
Starting data collection. The output file is C:\Users\jamie\Source\Repos\test(1).vspx
Profiler stopping.
Stopping data collection.
Merging collection data. Please wait...
Data is saved in file C:\Users\jamie\Source\Repos\test(1).vspx
Profiling finished.
Exception of type 'System.OutOfMemoryException' was thrown.

我能做些什么来解决这个问题还是我只需要获得更多内存?

奇怪的是,当它抛出这个问题时,我的机器上的总内存使用量约为 65%,因此它甚至没有使用我的所有内存来构建分析报告。

这是 VS 的全新安装,它具有所有默认设置。


None

本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)

时间:2017-05-17 标签:c#visual studio 2017CPU profilingout of memory异常 的相关文章

随机推荐