If you are running out of memory, you see the following error message:
java.lang.OutOfMemoryError
When you are running out of memory, either the Replication Agent drops out of Replicating state or the entire Sybase Replication Agent server stops executing.
To support adjusting the amount of memory available to the JRE, all of the executable scripts (or batch files) in the Replication Agent bin directory refer to an environment variable named RA_JAVA_MAX_MEM. All Replication Agent instance RUN scripts also reference the RA_JAVA_MAX_MEM environment variable.
To adjust the amount of memory available to the JRE, do one of the following:
Set the value of a system variable named RA_JAVA_MAX_MEM in your environment and use the ra utility to start the Replication Agent instance, or
Set the value of the RA_JAVA_MAX_MEM variable in the Replication Agent instance RUN script and use the RUN script to start the Replication Agent instance.
If you start a Replication Agent instance by invoking the ra utility, 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 ra and ra_admin utilities check to see if it is already set.
If you start a Replication Agent instance by invoking the instance RUN script (or batch file), 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 Replication Agent instance is started with the instance 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.
LTL (Log Transfer Language) is the syntax used to communicate or distribute replication data to Replication Server. It is the principle output from a Replication Agent. For more details about LTL syntax, see the Replication Server Design Guide.
To debug LTL
Log in to the running Replication Agent instance using the administrator login.
Verify that the Replication Agent instance is in Admin state:
ra_status
Set the values of the following Replication Agent configuration parameters for the primary database:
ra_config LITTRACELTL, true
Change the Replication Agent state to Replicating:
resume
When new replication activity is generated, check the LTITRACELTL.log file in the log directory to debug your problem.
By default, the LTL generated by the Replication Agent is compressed to reduce the amount of data sent to Replication Server, reducing network bandwidth. In cases where you require more verbose output to help debug a problem, change the following configuration parameters to produce more verbose LTL.
To produce more verbose LTL
Log in to the running Replication Agent instance using the administrator login.
Verify that the Replication Agent instance is in Admin state:
ra_status
Set the values of the following Replication Agent configuration parameters for the primary database:
ra_config column_compression = false
ra_config compress_ltl_syntax = false
ra_config structured_tokens = false
When new replication activity is generated, check the LTITRACELTL.log file in the log directory to debug your problem.