Description
MB-48860 initially looks like XDCR was leaking memory and being killed (status 137).
However, looking more closely, there's evidence that large amount of heap was not being freed:
2021-10-11T19:26:55.729-07:00 INFO GOXDCR.ReplMgr: Mem stats = {"Alloc":7412721584,"TotalAlloc":666004936352,"Sys":15415353824,"Lookups":0,"Mallocs":5097536792,"Frees":5071878962,"HeapAlloc":7412721584,"HeapSys":14692745216,"HeapIdle":5389934592,"HeapInuse":9302810624,"HeapReleased":66060288
|
|
"HeapInuse":9302810624,
|
"HeapIdle":5389934592,
|
HeapReleased":66060288
|
Golang had an issue fixed recently where it now defaults to MADV_DONTNEED on Linux.
https://github.com/golang/go/issues/33376
This issue is fixed in golang 1.16 and XDCR should upgrade to take advantage of this, since currently it's sitting on 1.15.8, which is quite old.
Attachments
Issue Links
For Gerrit Dashboard: MB-48888 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
163506,2 | MB-48888 - upgrade golang to 1.16.5 | master | goxdcr | Status: ABANDONED | 0 | 0 |
163528,3 | MB-48888- upgrade to golang 1.16.5 | master | goxdcr | Status: MERGED | +2 | +1 |