Hardware: Raspberry Pi 2 Model B Rev 1.1
OS: Raspbian GNU/Linux 10 (buster)
openHABian: openHAB3 Branch
Java Runtime Environment:
openjdk version “11.0.11” 2021-04-20
OpenJDK Runtime Environment AdoptOpenJDK-11.0.11+9 (build 11.0.11+9)
OpenJDK Server VM AdoptOpenJDK-11.0.11+9 (build 11.0.11+9, mixed mod
openHAB version: openHAB 3.1.0
Hi,
I recently installed the OpenWeatherMap binding which pretty much doubled the item count of my system from ~600 to 1281. Since then my MainUI is darn slow. I did a quick HTTP response time analysis and detected the call to /rest/items?metadata=semantics,listWidget,widgetOrder to be the culprit, taking ~7 sec to generate a response. This is pretty unfortunate since it’d be quite simple to just cache that service. >99% of the time the GUI is used to read and not to write items, so that fix seems quite obvious. Is there already a cache available but just not activated? Or am I the only one so far facing that type of performance problem?
For me the MainUI is definitely slower than BasicUI was when I used that in OH2. But on my PC the UI is still fairly responsive, whilst on mobile it does struggle a bit.
(I’ve not tried BasicUI in OH3 to compare).
I’ve moved OH3 between various devices, some low powered, some stupidly high powered, but UI lagging tends to be tied to the device that is rendering the UI, for me. Of course, a Pi2 is probably stretching things for your OH3 install!
I can try running this command on my RPi4 (4GB) later today, but I also have far fewer items. I’d agree that the RPi 2 probably isn’t cutting it.
You have 681 OWM items? That seems kind of insane, but I don’t know what your use case is. I don’t care about forecasts (I get those from Google), so I’m only using about 12 OWM items to display current conditions.
What I didn’t mention: I’m using h2 database in embedded mode as persistence.
I gathered some new facts using h2 tracing:
The bottleneck is iterating over the jdbc ResultSet created by the query “SELECT itemid, itemname FROM items;”. The query itself is executed in 184ms. Iterating over ResultSet takes ~6 seconds. We are talking about a ResultSet containing 1305 items.
Hi!
I don’t have a solution, but certainly the same problem. I have a little over 1000 items and some parts of the UI are very slow. If I click on any item list, it will load for around half a minute.