ReSharper的抛出OutOfMemoryException异常的大解决方案 [英] Resharper throws OutOfMemoryException on big solution
问题描述
IDE配置:
的Visual Studio 2008 + ReSharper的4.5.1 +的代理史密斯1.1.8 。
没有去年的加载项的任何复杂的配置。
Visual Studio 2008 + Resharper 4.5.1 + Agent Smith 1.1.8. There is no any sophisticated configuration for last to add-ins.
解决方案说明:
33类库+网站有200多个网页
33 class libraries + web site with 200+ pages.
症状:在调整上ReSharper的工作的一个小时后,IDE开始扔OutOfMemoryExection异常。正常的工作是不可能的只有重新打开Visual Studio可以提供帮助。
Symptoms: After an hour of work under tuned on Resharper the IDE starts to throw the OutOfMemoryExection exceptions. Normal work is impossible only reopen Visual Studio can help.
有谁有这样的问题呢?是否有可能配置ReSharper的消耗较少的内存?什么ReSharper的功能不占用内存最多?
Does anybody has such problem? Is it possible to configure Resharper to consume less memory? What Resharper feature does consume the most memory?
推荐答案
如果您使用的是64位Windows(或者你很高兴运行32位的Windows与/ 3GB开关),那么你可以配置Visual Studio来为/ LARGEADDRESSAWARE,其中,而不是2GB,将给予4GB(或3GB的地址空间,可播放/ 3GB)。
If you're on 64-bit Windows (or you're happy to run 32-bit Windows with the /3GB switch), then you can configure Visual Studio to be /LARGEADDRESSAWARE, which, rather than 2GB, will give it 4GB (or 3GB on /3GB) of address space to play with.
见,例如,的 http://old.stevenharman.net/blog/archive/2008/04/29/hacking-visual-studio-to-use-更比-OF-memory.aspx 2gigabytes ,这给了以下内容:
See, for example, http://old.stevenharman.net/blog/archive/2008/04/29/hacking-visual-studio-to-use-more-than-2gigabytes-of-memory.aspx, which gives the following:
editbin /LARGEADDRESSAWARE devenv.exe
另外,参阅的话题JetBrains公司网页:的 http://www.jetbrains.net/confluence/display/ReSharper/OutOfMemoryException%2BFix
Also, see the JetBrains page on the topic: http://www.jetbrains.net/confluence/display/ReSharper/OutOfMemoryException%2BFix
这篇关于ReSharper的抛出OutOfMemoryException异常的大解决方案的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!