I’m running a Raspberry Pi 3 with a WPE based signage solution, where my users can set up a series of screens that run as a slideshow. Each screen is a webpage that loads via AJAX and is injected into the document.
I have experienced that if my RPi ever runs out of memory the system reboots. This in itself is fine, as it is exactly what I’d like it to do, and with the way my test is currently set up it takes about 10-12 hours before it reaches 1GB of memory (showing a ton of gifs, HTML5 videos and flash content).
But, since I have no control over what my users put on the screen and it might be much more memory intensive than my test setup (and include memory leaks from iframes and embedded content), I’d like to extend the amount of time the screen can run before it needs to restart.
I was hoping setting up a swapfile might help, but I don’t seem to be able to since the FS is read-only.
@eCustic Hey there! Setting a swap file mitigates the problem but I don’t think its an actual solution, plus it’d make your app really slow.
It sounds like you should be able to tweak your application so it only stores a maximum amount of content at any given time. For example, the signage app can only reserve enough memory to serve the current slide.
and with the way my test is currently set up it takes about 10-12 hours before it reaches 1GB of memory (showing a ton of gifs, HTML5 videos and flash content).
Can you explain in more detail what your test does? If the device keeps consuming memory over time, then its probably a memory leak?