Skip to content
This repository has been archived by the owner on May 17, 2021. It is now read-only.

Performance

Speederc edited this page Jul 11, 2015 · 3 revisions

Performance Tuning OpenHAB

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.

Logging

In logback.xml

do a search for INFO and replace with WARN

Folder Scanning

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.

Installation


User Interfaces


Community

(link to openHAB forum)

Development



Misc


Samples

A good source of inspiration and tips from users gathered over the years. Be aware that things may have changed since they were written and some examples might not work correctly.

Please update the wiki if you do come across any out of date information.

Use case examples

Collections of Rules on a single page

Single Rules

Scripts


Release Notes

Clone this wiki locally