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.
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.