Page tree
Skip to end of metadata
Go to start of metadata

Product Version: 9.3

Last Modified: 1 April 2020

Problem

NAKIVO Backup & Replication displays the following alarm:

Director is about to run out of memory. Allocate more memory to the application.

Background

During NAKIVO Backup & Replication installation, the JVM memory parameters are configured based on the auto-detected host memory size. However, the application may require more memory than detected automatically. If the NAKIVO Backup & Application Director has less than 10% of JVM memory available, the product will display the error message informing that the Director is about to run out of memory. Running the Director out of memory can cause the corruption of the product database. 

Solution

To allocate more RAM to the NAKIVO Director service you need to extend the JAVA heap memory size parameters. To do this, take the following steps:

  1. Stop NAKIVO Backup & Replication Director service.
  2. Increase the maximum heap size (Xmx) and minimum heap size (Xms) in the following NAKIVO Backup & Replication configuration file:
    • For Windows OS: native\win32\backup_replication-service.ini
    • For Linux: choose the file that corresponds with your distribution and startup system:

      /etc/init.d/nkv-dirsvc
      /etc/init/nkv-dirsvc.conf
      /etc/systemd/system/nkv-dirsvc.service

    • For NAS devices: You can find the file on your NAS device by running the following command: find / -name "nkv-dirsvc"

      Example
      (for Windows OS) 
      File pathC:\Program Files\NAKIVO Backup & Replication\native\win32\backup_replication-service.ini
      JVM values:
      vmarg.7=-Xss512k
      vmarg.8=-Xms256m
      vmarg.9=-Xmx2g

Note

Keep in mind that it is not possible to set JAVA heap memory size parameters larger than RAM size.

3.  Start NAKIVO Backup & Replication Director service.

If the error keeps appearing, increase the memory settings until you no longer experience this error.


  • No labels