Performance - jfederico/openhab GitHub Wiki
Tips for optimizing OpenHAB performance. By default, OpenHAB logs quite a bit of data and scans frequently for config changes. Once your setup is stable, you should reduce the level of logging and scanning. Note: performance tuning for Bindings is in the Binding entries themselves.
In logback.xml
do a search for INFO and replace with WARN
In jetty.xml change scanInterval to 240 seconds. You need to do this for the 3 places listed below. For Linux, jetty.xml is normally in /etc/openhab/jetty/etc
<New class="org.eclipse.jetty.deploy.providers.ContextProvider">
<New class="org.eclipse.jetty.deploy.providers.WebAppProvider">
<New class="org.eclipse.jetty.osgi.boot.OSGiAppProvider">
<Set name="scanInterval">240</Set>
In openhab.cfg, change the folder scan interval to 240 seconds.
folder:items=240,items
folder:sitemaps=240,sitemap
folder:rules=240,rules
folder:scripts=240,script
folder:persistence=240,persist
Note : Be careful, a change of this configuration parameter can lead to an error during files loading at Openhab startup. If you get a log as "Configuration model 'XXXX' is either empty or cannot be parsed correctly!" try to remodify these values.