I’m having a problem with influxdb 1 running out of memory. I’m running inside a docker container on a raspberry 32bit raspian os on a pi4 8gb with 16gb of swap (I saw another post that said to increase swap, so I did) it didn’t seem to help. I rolled back to a previous days backup and adjusted all my retention policies decreasing the size and updating the continuous queries accordingly. I want to upgrade to the 64bit raspian os, but haven’t had the time and wanted to pick up another pi4 to make sure the transition went smoothly but that’s near impossible right now. Any help would be greatly appreciated.
However I’m still getting the out of memory error:
runtime: out of memory: cannot allocate 24576-byte block (1399291904 in use)
fatal error: out of memory
goroutine 4503 [running]:
runtime.throw(0xfebddd, 0xd)
/usr/local/go/src/runtime/panic.go:774 +0x5c fp=0x4549324 sp=0x4549310 pc=0x41644
runtime.(*mcache).refill(0xb6ef9008, 0x59)
/usr/local/go/src/runtime/mcache.go:140 +0xfc fp=0x4549338 sp=0x4549324 pc=0x262ec
runtime.(*mcache).nextFree(0xb6ef9008, 0x59, 0x540be400, 0x2, 0x9)
/usr/local/go/src/runtime/malloc.go:854 +0x7c fp=0x4549358 sp=0x4549338 pc=0x1b0f4
runtime.mallocgc(0x1300, 0xe1e790, 0x1, 0xc9bea8)
/usr/local/go/src/runtime/malloc.go:1022 +0x7a0 fp=0x45493c0 sp=0x4549358 pc=0x1ba40
runtime.makeslice(0xe1e790, 0x23c, 0x23c, 0x1)
/usr/local/go/src/runtime/slice.go:49 +0x6c fp=0x45493d4 sp=0x45493c0 pc=0x5928c
runtime.makeslice64(0xe1e790, 0x23c, 0x0, 0x23c, 0x0, 0x2)
/usr/local/go/src/runtime/slice.go:63 +0x44 fp=0x45493e8 sp=0x45493d4 pc=0x593d0
github.com/influxdata/influxdb/tsdb/engine/tsm1.timeBatchDecodeAllRLE(0x78ecbf9f, 0xc, 0x543cfc, 0x0, 0x0, 0x0, 0x543cfd, 0xc, 0x0, 0x1, …)
/go/src/github.com/influxdata/influxdb/tsdb/engine/tsm1/batch_timestamp.go:280 +0x284 fp=0x4549444 sp=0x45493e8 pc=0xc9c0a4
github.com/influxdata/influxdb/tsdb/engine/tsm1.TimeArrayDecodeAll(0x78ecbf9f, 0xc, 0x543cfc, 0x0, 0x0, 0x0, 0x78ecbfab, 0xc, 0x543cf0, 0x0, …)