Cannot back up a large server: "System.OutOfMemoryException"

Created:

2016-11-16 12:56:40 UTC

Modified:

2017-04-24 12:06:45 UTC

0

Was this article helpful?


Have more questions?

Submit a request

Cannot back up a large server: "System.OutOfMemoryException"

Applicable to:

  • Plesk for Windows

Symptoms

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.

Cause

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 System.OutOfMemoryException .

Resolution

  1. It is necessary to increase the accessible process address space by up to 3 GB using the " /3gb " parameter in the Windows system boot.ini file. The procedure is described in the Microsoft Technet article at http://technet.microsoft.com/en-us/library/ms189334.aspx .

  2. 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.

  3. As described in http://msdn.microsoft.com/en-us/library/ff556232(v=vs.85).aspx , the /3GB and /userva parameters 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 /LARGEADDRESSAWARE option. To modify already compiled binaries, use editbin.exe utility from Visual Studio set of build tools:

    editbin.exe /LARGEADDRESSAWARE "%plesk_bin%\\backup.exe"
Have more questions? Submit a request
Please sign in to leave a comment.