Enable Visual Studio to use more than 2GB of memory

Very useful when you have more memory:

http://mkwec.de/2010/01/08/make-visual-studio-use-more-than-2-gig-of-memory/

"Using Visual Studio can be quite frustrating: even having a big quad processor 8 gig SSD raid machine it will still complain not being able to complete an operation because there is not enough “storage” available. Ever seen this “Not enough storage is available to complete this operation.”-Message in large solutions with many projects?

Actually this “storage” means memory and you can use the following steps to provide more memory to visual studio:


  • Windows XP users only:  add the /3GB switch to your boot.ini (make sure you backup your old boot.ini before)
  • Windows Vista users only: from the Visual Studio command prompt run: BCEDIT /Set IncreaseUserVa 3072
  • Apply large address awareness to visual studio by running: editbin /LARGEADDRESSAWARE devenv.exe in your <path-to-VS>/Common7/IDE (make sure you backup your old devenv.exe)
  • Reboot

Now Visual Studio will use more than 2GB of RAM. It will never use MUCH more than 2GB of RAM, but it seems like Visual Studio will have problems when hitting the 2GB mark without this trick."

http://stevenharman.net/blog/archive/2008/04/29/hacking-visual-studio-to-use-more-than-2gigabytes-of-memory.aspx

Comments

Popular posts from this blog

Tutorial: Using Google Cloud Storage from C# and .NET

Late 2008 Macbook only giving 1.5 gb/s speed with 6 gb/s Intel SSD?

The ridiculous interview experience