Memory Consumption Controls

The configuration parameter memory_limit has been enhanced to control memory consumption and prevent Replication Server from automatically shutting down when it exceeds the defined value of available memory. A new configuration parameter, memory_control, manages the memory control behavior of threads in Replication Server.

With version 15.7, you can configure Replication Server to show warning messages when the memory consumption exceeds a defined threshold percentage of the total available memory. Two new configurable parameters support this enhanced memory management:
In addition, Replication Server 15.7 also addresses the issue of automatic shutdown of Replication Server when it exceeds the available memory defined by memory_limit. In Replication Server, the threads that require significant amount of memory are:
In version 15.7, these threads execute memory control by performing a memory usage check before receiving or processing new data. During memory control, if the memory usage is found to be high, thread functioning is adjusted by:
There are three new server-level configuration parameters for managing flow control in EXEC, DST, and SQT threads:

A new server-level configuration parameter, memory_control, manages the memory control behavior of threads. Valid values for memory_control are enable (the default value) or disable. In this way, Replication Server controls the memory consumption and does not shut down because of memory issues.

Use configure replication server to alter the default values for the new configuration parameters. Use admin config to view the default or existing values.

See:

Monitor Thread Information

Use admin who to provide information on the memory control behavior of the thread:
State Description

Controlling Mem

The thread is executing memory control.

Sleeping For Mem

The thread is sleeping until memory is available.

See Replication Server Reference Manual > Replication Server Commands > admin who.

Memory Management Statistics

Use admin stats to view the memory management statistics. Memory counters are enabled in the rsh module. To report the memory counters, use:
admin stats,rsh display_name instance_id
where:
  • display_name – is the name of a counter. Use rs_helpcounter to obtain valid display names. display_name is used only with module_name.
  • instance_id – identifies a particular instance of a module such as SQT or SQM. To view instance IDs, execute admin who and view the Info column. For rsh module, the SPID must be used. To view SPID, execute admin who and view the Spid column.

See Replication Server Reference Manual > Replication Server Commands > admin stats.