High CPU usage and inaccessible UI on Raspberry Pi 4 since openHAB versions newer than 5.1

Hello everyone,

I’m experiencing persistent high CPU usage and an inaccessible UI with openHAB running in Docker on a Raspberry Pi 4.

The problem started with openHAB versions newer than 5.1. Before that, everything was running smoothly. The installation was stable, and openHAB worked like a charm.

To rule out configuration-related issues, I deliberately reinstalled openHAB with a completely clean and minimal configuration. However, the problem persists.

The current setup has:

  • Raspberry Pi 4

  • openHAB running in Docker

  • Only one Thing configured: an MQTT broker

  • No persistence

  • No rules or other significant configuration

Despite this minimal setup, the container experiences CPU spikes and the openHAB UI becomes inaccessible.

Here is an example of the output from docker stats:

CONTAINER ID   NAME                CPU %     MEM USAGE / LIMIT   MEM %   NET I/O         BLOCK I/O   PIDS
833f6931717a   openhab-openhab-1   196.17%   0B / 0B            0.00%   2.3kB / 1.83kB  0B / 0B     22

Even stopping the container with docker compose down --remove-orphans takes several seconds.

Unfortunately, I haven’t found any useful information in the logs to explain the behaviour.

What makes this particularly puzzling is that the same Raspberry Pi 4 and Docker setup used to run openHAB perfectly well. The issue appeared with versions newer than 5.1 and persists even after a deliberate clean reinstall with almost no configuration.

Has anyone else experienced similar issues with openHAB 5.2 or later on a Raspberry Pi 4?

Could this be a regression related to the JVM, Karaf, add-on initialization, or the ARM architecture?

Any suggestions on how to diagnose the cause of the CPU spikes when the UI is no longer accessible would be greatly appreciated.

Thank you!

Check for mqtt: postCommand option to be true, search the forum for this keyword to get the full story.