To support adjusting the amount of memory available to the JRE, all of the executable scripts (or batch files) in the Mirror Replication Agent bin directory refer to an environment variable named RA_JAVA_MAX_MEM.
Also, all Mirror Replication Agent instance RUN scripts created after the ESD #10 rollup is installed reference the RA_JAVA_MAX_MEM environment variable.
You can adjust the amount of memory available to the JRE by either:
Set the value of a system variable named RA_JAVA_MAX_MEM in your environment and use the mra utility to start the Mirror Replication Agent instance, or
Set the value of the RA_JAVA_MAX_MEM variable in the Mirror Replication Agent instance RUN script and use the RUN script to start the Mirror Replication Agent instance.
If you invoke the mra utility to start a Mirror Replication Agent instance, you can set the value of the RA_JAVA_MAX_MEM system variable in your environment to specify the amount of memory available to the JRE. Before it sets the RA_JAVA_MAX_MEM variable to a default value, the mra and mra_admin utilities check to see if it has been already set.
If you invoke the RUN script (or batch file) to start a Mirror Replication Agent instance, you can edit the instance RUN script to change the default value of RA_JAVA_MAX_MEM and specify the amount of memory available to the JRE.
When a Mirror Replication Agent instance is started with the RUN script, the
value of the RA_JAVA_MAX_MEM variable
specified in the RUN script overrides the value
set elsewhere. Therefore, you can edit the RUN script
to adjust the memory available to the JRE for each instance.