[influxdb persistence] Threads increase to Out Of Memory when influxdb is stopped

  • Platform information:
    • Hardware: x64
    • OS: debian stable
    • Java Runtime Environment: 17.0.10 openjdk
    • openHAB version: 4.1.2-1 (deb)


When the influxdb service is stopped, openhab loops in trying to connect.

11:47:31.262 [WARN ] [ernal.influx2.InfluxDB2RepositoryImpl] - database not ready
11:47:34.269 [WARN ] [db.client.internal.InfluxDBClientImpl] - The exception occurs during check instance readiness
com.influxdb.exceptions.InfluxException: Failed to connect to

This loops, and seems to increase the number of threads openhab creates until “Out Of Memory” (19033 threads on my system).

Can someone look at the influxdb persistence service and try to confirm that ?


I think you have enough evidence to post an issue. See How to file an Issue and the repo to file this on is openhab-addons.

Looking at influxdb persistence service code I do not see (yet) any major issues with its thread management. What other addons are you running? Do you use rules with timers maybe?