Author: Adam Leszczyński <aleszczynski@bersler.com>, version: 1.9.0, date: 2026-01-23 |
This section describes the memory element in the OpenLogReplicator JSON configuration.
It explains each parameter, constraints, defaults and operational notes related to memory allocation and buffering.
| Parameter | Type / constraints | Description and notes |
|---|---|---|
|
integer, min: 32, default: 2048 |
Maximum total memory (megabytes) the process may allocate for internal data structures and buffers. NOTE: Does not include memory allocated on-demand for sending large JSON messages to outputs (e.g., Kafka) or separate LOB processing buffers. |
|
integer, min: 16, max: |
Amount of memory (megabytes) reserved at startup and the target minimal allocation during operation.
The allocator may grow above this value up to |
|
integer, min: |
Maximum size of the read buffer used for disk I/O (megabytes). IMPORTANT: Larger read buffers can improve throughput but consume addressable memory.
This buffer is resident (not swappable) and counts toward |
|
integer, min: 4, min( |
Minimum size reserved for read buffers (megabytes).
The runtime may expand buffers up to |
|
integer, min: 0, max: |
Threshold (megabytes) of resident memory usage that triggers swapping of transaction data to disk. IMPORTANT: Set to |
|
string, max length: 256, default: |
Directory used for swap files created when NOTE: Swap files are created per transaction with the pattern CAUTION: Directory must be writable by the process.
Only applicable when |
|
integer, min: 4, max: |
Memory reserved for reading swapped transaction data back into memory during commit processing (megabytes). NOTE: Only applicable when |
|
integer, min: |
Maximum size of the output/write buffer used to assemble messages for sinks (megabytes). IMPORTANT: This buffer is resident (not swappable) and counts toward |
|
integer, min: 4, max: |
Minimum reserved memory for the output/write buffer (megabytes).
The buffer may grow up to |
|
Note
|
|
memory configuration (JSON){
"memory": {
"max-mb": 2048,
"min-mb": 64,
"read-buffer-min-mb": 8,
"read-buffer-max-mb": 128,
"swap-mb": 1536,
"swap-path": "./tmp",
"unswap-buffer-min-mb": 8,
"write-buffer-min-mb": 16,
"write-buffer-max-mb": 512
}
}