Adjusting Java memory

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:

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.

NoteWhen 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.