• Platform information:
    • Hardware:Raspberry PI 4b
    • OS: openhabian
    • Java Runtime Environment:OpenJDK Runtime Environment Zulu11.43+88-CA (build 11.0.9+11-LTS)
    • openHAB version: openHAB 3.3.0 Build #2965
    • FILEBASED config

After saving .rule file, openhab uses 100% of one CPU. The most active thread is OH-file-process. This behavior doesn’t stop until service restart. Not sure but it looks like, this problem starts after second file save, first one is OK. Any ideas ?

For how long? It looks like it’s just parsing and preparing the .rule file to run. This is known to be a very CPU heavy process. It’s not unexpected that the CPU would spike for a time.

It doesn’t stop until service restart. This can go on for hours.

Is that for every rules file or just for a single one?

Any rules file.

Observation: first file update causes no problems, second update (not necessary same file) starts using 100% CPU.

Update: increasing heap solved the issue. While having close to 600 items and 4500 lines of rules, I’ve set EXTRA_JAVA_OPTS="-Xms1024m -Xmx2048m". Currently, runs everything smooth, also speed and responsiveness of main UI has improved.