S2Sv2 jobs containing a large number of files fail to complete replication (GuardianOS 3.2.025 and earlier)

Version 3

    S2Sv2 jobs containing a large number of files fail to complete replication.


    This information applies to the following Product(s):

    - SnapServer 4200


    - SnapServer 4400


    - SnapServer 4500


    - SnapServer 14000


    - SnapServer 15000


    - SnapServer 18000


    This information applies to the following Operating System(s):

    - This information is not Operating System specific


    ---Solution---

    By default, a maximum of 64MB of RAM is allocated for use by Java, the code base for S2Sv2. In replication jobs where close to 100K files or more files are involved, 64MB may not be sufficient. In cases where memory is insufficient, the engine may unexpectedly stop during the replication process on one or both servers. The message java.lang.OutOfMemoryError may also be recorded in the log_node.txt or log_node.txt.* which are captured with the s2slogs command. Remember to check the s2slogs from both servers.


    An internal option to adjust the amount of memory allocated for the Java Virtual Machine (JVM) is available to GuardianOS 3.2.025. Once both servers are running 3.2.025, the /flash/config.ini file may be edited to include the following.


    Here are steps to increase the amount of memory allocated. Keep in mind this information applies to GuardianOS running version 3.2.025 only.


    1. Enable SSH from the system menu and SSH into the server
    2. su - (switch to root)
    3. cp /flash/config.ini /flash/config.1 (make a backup of the file we are going to modify)
    4. vi /flash/config.ini (opens the file for editing)
    5. shift + g (hold down the shift key and press g to move the cursor to the end of the file)
    6. shift + e (hold down the shift key and press e to move the cursor to the end of the line)
    7. a (press the a key to append to the file)
    8. enter (press the enter key to start a new line)
    9. add the following two lines to the file.

    [jvm]
    max_memory=128M

    10. ESC (press the escape key)
    11. shift+zz (hold down the shift key and press the z key twice to save and exit)

    Note: To exit without saving changes, hit the escape key and press the following key sequence.
    : q ! Enter


    The amount of memory to specify should be no more than 128MB for a server with 256MB RAM and no more than 192MB for servers with more than 256MB RAM. Reboot the servers for changes to take effect.