Tuesday, July 16, 2013

Increase 32 bit .NET program memory limit beyond 2 GB

Normally a 32 bit .NET program can only use memory up to 2GB even when you have much more memory on your computer. There are several ways to solve this problem:

1. Cloud: effective and best solution except when porting your application to cloud will prove too much effort

2. Increase program memory limit: for a win32 C# program, it is possible to increase the memory limit to 3GB using guide line from (http://blogs.msdn.com/b/calvin_hsia/archive/2010/09/27/10068359.aspx),

3. Change the 32bit program to 64bit program and follow guideline from
http://blogs.msdn.com/b/calvin_hsia/archive/2010/09/27/10068359.aspx
which shows how you extend the memory limit to 64bit

For a program that handles very large data, option 1 seems to be the only reasonable option.

No comments:

Post a Comment