Memory leak in several HA scenarios
@wlodek recently implemented extended HA stability tests and the results are worrisome. It seems that there is a memory leak in the following scenarios:
- passive backup memfile v4
- passive backup memfile v6
- hotstandby memfile v6
- hotstandby postgresql v4
- hotstandby postgresql v6
Open the report report-ha-1.9.11-master.html, and go to
HA stability tab. For example, see "passive backup memfile v4". There are two diagrams 13-A (shows traffic) and 13-B that shows CPU and memory utilization. Note the primary mem usage. The machine has 64G ram. The memory usage grows stadily to over 25% (16GB) when the test concludes after 800 seconds (specified test duration). Other scenarios listed above show similar behaviors. @wlodek will provide more details, including configs, once he gets back to office.
UPDATE: The results above were run on master, after 1.9.11 code freeze and later repeated on 1.9.8 release, which showed similar problems.