Hi,
ever using 2.1 (various snapshot versions), I’m seeing that a openhab restart takes about 35 minutes until all modules become active.
While I have a large installation (150+ devices, 600+ items/groups) and my Pi (gen 2) of course isn’t the greatest in terms of performance, that’s way too much.
OH1 was much faster and I’m suspecting a bug somewhere, maybe in the order of module initialization. Add to this the fact that these 35 mins are the point in time where the zwave module starts working, so it takes another 30 mins or so to walk through initializing all zwave devices due to air traffic jam.
So here’s some observations that I’d like you to confirm or point at if you feel that’s unusual or largely different in your installation:
-
It takes so long to resolve depencies until the last module starts. Most of the time I can see java consume around 100%, i.e. full (but serialized) utilization of a single core. I don’t see much I/O, so CPU seems to be the bottleneck.
Shouldn’t ESH allow for a greater amount of parallelization ? Any decent processor has multiple cores (Pi2 has 4). -
To load rules takes up to 2:40 minutes for the largest single one of my rule files (~1k lines). Recompilation does, however, take as-long when I change that rule in a running system.
-
I’m using rrd4j as the default persistence DB, and persist most items.
These are my modules: binding = zwave1,max,http1,hue,network,exec,weather1,astro,mqtt1,mqttitude1,pioneeravr,ntp
I tried to omit some of them, but it does not seem to make a relevant difference either. -
I’m seeing the rules engine being initialized pretty much at the beginning. I feel that the rules engine should start later as it does not make sense to run rules on items that are neither initialized by the associated module (zwave for most of mine) or the persistence DB (I’m persisting most values using rrd4j).
However, to delete all rules doesn’t seem to affect the initialization time of the modules by a markable margin so I’m not sure it would make a difference.
Can I change the dependency chain somewhere ?
I know this is a somewhat vague diagnosis and open question, but I’d be glad to get suggestions where (and how) to investigate this further. Feel free to ask for details.
thanks
Markus