Has anyone else written scripts or rules in the OH3 Main UI DSL editor? If so, have you found that these rules perform very poorly, taking longer than they should to execute? Have you found it resulting in java heap space errors, running out of memory, and CPU usage getting pegged? I and one other member here have experienced this. Even on multiple fresh clean installs.
I have written the same rule doing the same thing in the ECMA script editor in the OH3 main UI and it performs perfectly. This only seems to happen with DSL scripts and it only seems to be with DSL scripts written in the Main UI editor. In other words, not text file rules.
Fishing for anyone else with this issue to forward to developers for troubleshooting.
Today I migrated my old .rules files into the GUI. Since I don’t “speak” ECMA, I went for DSL rules.
Two hours ago I had my first “Java heap space” exception and the system became unresponsive.
I also noticed that sometimes very simple DSL rules take 7-10 seconds in execution,
So, yes, there is definitely an issue with DSL rules defined on the GUI (at least) in OH3.