How do I fix the out-of-memory (OOM) error on Windows 7 32-bit?

A 32-bit system caps the virtual memory available to any single process at roughly 2 GB, regardless of how much physical RAM is installed. The desktop client can exceed this limit and crash with an OOM error.

The best fix is to upgrade to a 64-bit version of Windows. A 64-bit system removes the 2 GB virtual memory cap, which is the most common cause of this error.
If upgrading is not an option, increase the user-mode virtual address space on your current system:
Open Command Prompt as an administrator and run the following command:
bcdedit /set increaseuserva 4096The value is in megabytes. Set it based on your physical RAM:
4 GB RAM: use
30728 GB RAM or more: use
4096

Restart your computer.
Reinstall the client.
To revert this change if it causes side effects with other applications, run:
bcdedit /deletevalue increaseuservaThe team continues to optimize memory usage in future iterations. However, because new features are added to the client, this issue may not be completely resolved.