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.
mem_warning_thr1 – specifies the threshold percentage of the total memory used before the first warning message is generated.
Default: 80% of memory_limit value.
Range: 1 – 100.
mem_warning_thr2 – specifies the threshold percentage of the total memory used before the second warning message is generated.
Default: 90% of memory_limit value.
Range: 1 – 100.
mem_thr_dsi – specifies the percentage of the total memory used to force the DSI thread to stop populating the SQT cache.
Default: 80% of memory_limit value.
mem_thr_exec – specifies the percentage of the total memory used to force the EXEC thread to stop receiving commands from RepAgent.
Default: 90% of memory_limit value.
mem_thr_sqt – specifies the percentage of the total memory used to force the SQT thread to flush the largest transaction from its cache.
Default: 85% of memory_limit value.
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.
State | Description |
---|---|
Controlling Mem |
The thread is executing memory control. |
Sleeping For Mem |
The thread is sleeping until memory is available. |
admin stats,rsh display_name instance_idwhere:
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.