A large server (large disk space of physical hosting domains) with Windows 32-bit and Parallels Plesk Panel cannot be backed up. The following error appears in the backup task results:
Unable to close zip archive Exception of type 'System.OutOfMemoryException' was thrown. Exception of type 'System.OutOfMemoryException' was thrown.
All 32-bit applications have a 4-gigabyte (GB) process address space (32-bit addresses can map a maximum of 4 GB of memory). Microsoft Windows operating systems provide applications with access to 2 GB of process address space, specifically known as user mode virtual address space.
When trying to create large ZIP archive, 2 GB process address space is exhausted, which causes
It is necessary to increase the accessible process address space by up to 3 GB using the "
/3gb" parameter in the Windows system
boot.inifile. The procedure is described in the Microsoft Technet article at http://technet.microsoft.com/en-us/library/ms189334.aspx.
In the Windows registry, the SystemPages parameter of the HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Memory Management key should be set to 0.
NOTE: After making these changes, the server must be rebooted.
As described in http://msdn.microsoft.com/en-us/library/ff556232(v=vs.85).aspx, the
/uservaparameters are valid only on boot entries for 32-bit versions of Windows on computers with x86 or x64-based processors.
To take advantage of the 3 GB available to user-mode programs, the program must be linked with the
/LARGEADDRESSAWAREoption. To modify already compiled binaries, use
editbin.exeutility from Visual Studio set of build tools:
editbin.exe /LARGEADDRESSAWARE "%plesk_bin%\backup.exe"