We would like to have a continuous slide show of graphs depicting the state of our most important server and workstation hardware in our IT center. We're currently testing a Rock64 single board as a Zabbix display device. We've also tested a Raspberry Pi as well and they both have a problem I'm hoping someone can show me how to solve. The problem is that they both run out of memory over several days of operation. (Please see zabbix graph below).
The devices run Debian 9, MATE, Zabbix Agent, and Firefox. There are a few other applications on them like UFW and xdotool; but, that's it. They're intended as single-use machines, so they don't need anything else on them. The only thing that I've ever seen consume memory like this is a database. But, there's no databases on these units. 90% of memory appears to be consumed by the browser (please see ps output below). As I recall, Chromium did the same thing on the Pi. I haven't tested Chromium on the Rock64 as yet.
All the devices do when they boot up is auto login to MATE with an unprivileged account, start and auto login to Zabbix with an account used to display a specific slide show (the Zabbix login screen is the Firefox default page), and then run the slide show until the next reboot (please see bash script below). If we can stabilize the memory, I believe these devices will make great, inexpensive displays. It looks fantastic on the 55" TV that I've been testing with so we'd really like to work this out. Has anyone else had as similar problem with single board computers? If so, how did you address it?
#!/bin/bash
export XAUTHORITY=/home/zbxdisp01/.Xauthority
export DISPLAY=:0
firefox &
sleep 5
xdotool search "Mozilla Firefox" windowactivate --sync key F11
PID TTY STAT TIME MAJFL TRS DRS RSS %MEM COMMAND
1855 ? Sl 158:03 517 0 1913220 226108 5.6 firefox-esr
1901 ? Sl 193:13 729 0 4888452 3444496 85.6 /usr/lib/firefox-esr/firefox-esr -contentproc -greomni /usr/li
Comment