I have been using openHAB (more exectly openHABian) for 4 years and so far there have been no major problems. Since last week.
I’ve lost communication with Xiaomi Gateway during night hours. I’ve made investigation and found that openHAB was restarted and probalb reason is following:
Apr 11 06:40:11 openHABianPi kernel: [2871400.353016]  0 11750 623 19 4 0 0 0 sed Apr 11 06:40:11 openHABianPi kernel: [2871400.353025] Out of memory: Kill process 637 (java) score 518 or sacrifice child Apr 11 06:40:11 openHABianPi kernel: [2871400.353560] Killed process 637 (java) total-vm:744068kB, anon-rss:500340kB, file-rss:0kB Apr 11 06:40:11 openHABianPi systemd: openhab2.service: main process exited, code=killed, status=9/KILL Apr 11 06:40:12 openHABianPi influxd: [I] 2020-04-11T04:40:12Z retention policy shard deletion check commencing service=retention Apr 11 06:40:13 openHABianPi CRON: (root) CMD (command -v debian-sa1 > /dev/null && debian-sa1 1 1)
As I understand I have not enough memory for openhabian (and for grafana/influxdb/mosquito) and hardware upgrade is necessery. Currently I have Rpi 2 with 1GB memory. Because I use z-wave hat and custome made MCP23017 my next hardware must be at least compatible with Rpi connectrors.
Ok but what to choice ? Trusted Rpi 4 with 2 or 4 GB or maybe other clone with emmc
if yes which one?