openHAB 4.0 Release discussion

I encountered two issues with OH4.0.1:

  1. A gradually increasing memory leak, as I detailed in this thread.
  2. A rise in load when HABApp is running (HABApp Thread)

Regrettably, my main focus was on the second issue, to observe the impact of various changes. Here’s what I did:

  • I utilized the macvlan network for openHAB and other components of my home automation stack. ==> I set openHAB to be the sole container operating in network_mode as the host. The other services (like mqtt, influxdb, grafana, etc.) ran with bridge network. This alteration had no effect on the second issue; I didn’t evaluate the impact on the first issue.
  • I configured the HABApp container to map its config directory to the OH4.0.1 automation directory (JSR223). The HABApp config directory also serves as the storage for its log files, which are extensive (log+events).
    ==> I relocated this volume away from OH4.0.1, which eliminated the rising processor load.

Now, when I observe the memory usage starting at about 6 pm yesterday (marked as 2), the graph remains perfectly flat. Before that in section 1 the memory curve is looking flat too, which point to macvlan to being the issue.
image

Conclusion: It’s all my fault!

2 Likes