Default Maximum Memory Setting

The default maximum memory can be set in three ways.

You can set RA_JAVA_MAX_MEM:

The setting of RA_JAVA_MAX_MEM in the RUN script file overrides the setting of the environment variable and the setting in the ra script file. If RA_JAVA_MAX_MEM is not set in the RUN script file, the setting of the environment variable overrides any value set in the ra script file. The setting for RA_JAVA_MAX_MEM in the ra script file is used only if RA_JAVA_MAX_MEM is set neither in the RUN script file nor in the environment variable.

You can override the JVM default for the maximum amount of memory available to the JRE for all instances of Replication Agent or for one specific instance of Replication Agent.