Skip to main content
Backup fails due to virtual memory exhaustion
Updated over 3 months ago

This article applies to:

  • Product edition: Phoenix

Problem description

File server or SQL database backup is getting failed with an INTERNAL65535 error. In logs traces, it shows memory exception error. Then look for the event id:2004 for Microsoft Windows Resource exhaustion detector in the event logs.

The file server or SQL database backup fails with an INTERNAL65535 error. The logs show a memory exception error arising from Microsoft Windows resource exhaustion detector.

Cause

The issue occurs when the Windows server is diagnosed with a low virtual memory.

Traceback

< [2018-10-26 12:37:54,877] [ERROR] Exception: . 
[2018-10-26 12:37:54,877] [ERROR] Error <type 'exceptions.MemoryError'>:. Traceback -Traceback (most recent call last): 
File "agentPartnerProcess.py", line 225, in _process_request 
File "roboSyncer.pyc", line 950, in read 
File "roboSyncer.pyc", line 965, in readfile 
MemoryError 
 
System Event Logs 
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 
Log Name: System 
Source: Microsoft-Windows-Resource-Exhaustion-Detector 
Date: 26-10-2018 23:10:22 
Event ID: 2004 
Task Category: Resource Exhaustion Diagnosis Events 
Level: Warning 
Keywords: Events related to exhaustion of system commit limit (virtual memory). 
User: SYSTEM 
Computer: <servername> 
Description: 
Windows successfully diagnosed a low virtual memory condition. The following programs consumed the most virtual memory: sqlservr.exe (1864) consumed 42609135616 bytes, svchost.exe (2112) consumed 2080235520 bytes, and ccSvcHst.exe (4664) consumed 1545547776 bytes. 

Resolution

  1. From the event log, note the services that consume the maximum virtual memory and then perform the housekeeping of the virtual memory.

  2. If the first step fails, increase the virtual memory.

  3. Following are the steps to increase the Virtual Memory in Windows:

    • Open System Properties:

      • Press Win + R to open the Run dialog box.

      • Type sysdm.cpl and press Enter. This opens the System Properties window.
        ​

    • Navigate to Performance Settings:

      • In the System Properties window, go to the Advanced tab.

      • Under the Performance section, click on the Settings button. This opens the Performance Options window.
        ​

    • Adjust Virtual Memory:

      • In the Performance Options window, go to the Advanced tab.

      • Under the Virtual memory section, click on the Change button. This opens the Virtual Memory window.
        ​

    • Apply and Restart:

    1. After making your changes, click OK to close each window.

    2. You will be prompted to restart your computer for the changes to take effect. Save any open work and restart your computer.

    Your virtual memory settings will be updated after the restart.

Did this answer your question?