I have been having a problem with my openHab setup for some quite time now (1 year plus). I can’t remember when it started but my previous attempts to solve it have gotten me nowhere.
Basically the problem is that the openHab process uses a lot of CPU after a certain time and also the RAM memory goes up.
My setup runs on an Intel Nuc with Proxmox, VM with Debian and openhabian + mosquitto + influx.
After rebooting the system is usually at 1% CPU utilization. Then at some point and for no apparent reason, the system ends up at 70-80% CPU utilization and can only be calmed down again by a reboot. All rules and automations are still working.
I have already switched hardware from native Debian to Intel Nuc with Proxmox. The problem moves with it. So it seems to be somehow due to my model / setup, which I took with me via Backup & Restore.
Here are a few screenshots:
The spikes are openhab with high CPU load. At the lows the same openhab is also running.
Can you give me tips on how I can check or debug Openhab subprocesses more precisely? Maybe it is due to some open sessions problems or the persistence. I have not been able to find a source so far.
A gut feeling tells me that it might have soming to do with remote access through myopenhab…