We’ve been having some issues running out of memory on a multi-container application running on a RPi3B+. The container that crashes is always the same. It’s running an Electron application and I haven’t been able to detect any memory leaks. Recently we upgraded to an RPi4 to see if it was truly a memory limitation and over the weekend we experienced same crash but this time with an additional log message with a large allocation warning:
17.11.19 19:13:18 (-0600) app [96:1118/011318.808760:INFO:CONSOLE(16)] “memory usage @ 15016104”, source: file:///usr/src/app/src/route.js (16)
*17.11.19 19:19:04 (-0600) app tcmalloc: large alloc 1148030976 bytes == (nil) @ *
17.11.19 19:19:04 (-0600) app [129:1118/011904.621043:FATAL:memory_linux.cc(42)] Out of memory.
As you can see the memory usage dump that I’m doing from the renderer doesn’t even touch the limits of the RPi4. I’ve done quite a bit of Googling but haven’t seen anything super concrete. I am doing a test without network connectivity now so we’ll see if that has any interesting results. On the RPi3 this has been happening very consistently on a 24 hour time frame. The RPi4 took a couple of days but it’s a new installation so take that with a grain of salt.
Has anyone run into this before by chance?