- Platform information:
- Hardware: CPUArchitecture/RAM/storage: Raspberry 3 B
- OS: what OS is used and which version: jessie
- Java Runtime Environment: which java platform is used and what version: openjdk version “1.8.0_152”
- openHAB version: openHAB 2.4.0-1
- Issue of the topic: Rules stops execution after a while.
After running for months with a stable configuration, it started to happen, that rules stopped beeing executed. This could happen after hours or just some minutes after restart - and it is not that it stops for all rules only a few (but it seems always the same). The openHab system stays operational and responsive all the times.
There is no indication in the logs, so that I could start to check from here - they just stop.
I haven’t applied major changes to my rules/items in the last weeks, due to holiday season (never touch a running system), except for applying the latest updates by apt-get (belly feeling vise I would say, it started after and apt-get update
I already went through the article:
and eliminated all Thread::sleep
, which in fact only concerned two rules.
I tried to understand, what is loaded or blocking and applied some commands which I took from different articles - but I have the feeling, that the system is not overloaded:
shell:threads --list |grep "RuleEngine"
4842 x pipe-grep "RuleEngine" x RUNNABLE x 74 x 60
shell:threads --list |grep "safeCall"
4277 x safeCall-88 x TIMED_WAITING x 4588 x 4100
4345 x safeCall-89 x TIMED_WAITING x 4364 x 3870
4648 x safeCall-94 x TIMED_WAITING x 2091 x 1860
4761 x safeCall-96 x TIMED_WAITING x 1280 x 1190
4790 x safeCall-97 x TIMED_WAITING x 840 x 790
4877 x safeCall-98 x TIMED_WAITING x 121 x 120
4902 x pipe-grep "safeCall" x RUNNABLE x 14 x 10
shell:threads --list |grep "thingHandler"
177 x ESH-thingHandler-1 x TIMED_WAITING x 55458 x 51400
178 x ESH-thingHandler-2 x TIMED_WAITING x 59569 x 55110
179 x ESH-thingHandler-3 x TIMED_WAITING x 53985 x 49780
180 x ESH-thingHandler-4 x TIMED_WAITING x 51523 x 47770
181 x ESH-thingHandler-5 x TIMED_WAITING x 57060 x 52880
4901 x pipe-grep "thingHandler" x RUNNABLE x 233 x 190
Honestly I have no idea where to start here to narrow down the cause of the issue.
Could someone advise, at least to understand why the rules stop to work (i.e. error code)?
BTW: Something I notice, when I restart openHAB, persistent values changed back to their former values from time to time (i.e. I have a status of an item, which I change manually and it is always in the status before I changed it after restart).
Thanks in advance.