-
Platform information:
- Hardware: Intel Core i7 x64, 1 GiB RAM
- OS: Ubuntu 18.04.1 x64
- Java Runtime Environment: OpenJDK Runtime Environment (build 1.8.0_181-8u181-b13-0ubuntu0.18.04.1-b13)
- openHAB version: 2.3.0
-
Issue of the topic: After running for a few days, openHAB crashes with an OutOfMemoryError. It might have to to something with charts and/or sitemap generation.
-
Memory dump after crash:
- 199.14mb (84.0%) is used by Java Static org.eclipse.smarthome.io.rest.internal.RESTActivator.context
- Contents of object above:
org.eclipse.osgi.internal.framework.BundleContextImpl.servicesInUse β 203,915K (84.0%), 1 reference(s)
{j.u.HashMap}.values β 203,778K (84.0%), 21 reference(s)
org.eclipse.osgi.internal.serviceregistry.ServiceFactoryUse.cachedService β 203,778K (84.0%), 20 reference(s)
org.eclipse.smarthome.io.rest.sitemap.internal.SitemapResource.eventOutputs β 201,736K (83.2%), 1 reference(s)
com.google.common.collect.MapMakerInternalMap.segments β 201,736K (83.2%), 1 reference(s)
com.google.common.collect.MapMakerInternalMap$Segment[] β 201,736K (83.2%), 4 reference(s)
com.google.common.collect.MapMakerInternalMap$Segment.table β 201,735K (83.2%), 4 reference(s)
java.util.concurrent.atomic.AtomicReferenceArray.array β 201,735K (83.2%), 4 reference(s)
Object[] β 201,671K (83.1%), 8,178 reference(s)
com.google.common.collect.MapMakerInternalMap$StrongEntry.valueReference β 150,471K (62.0%), 8,178 reference(s)
com.google.common.collect.MapMakerInternalMap$WeakValueReference.referent β 150,215K (61.9%), 8,174 reference(s)
com.google.common.collect.MapMakerInternalMap$WeakValueReference self 255K (0.1%), 8,178 object(s)
com.google.common.collect.MapMakerInternalMap$StrongEntry.{next} β 50,944K (21.0%), 3,142 reference(s)
com.google.common.collect.MapMakerInternalMap$StrongEntry.valueReference β 50,846K (21.0%), 3,142 reference(s)
com.google.common.collect.MapMakerInternalMap$StrongEntry self 98K (<0.1%), 3,142 object(s)
-
Top Memory Headers: java.util.concurrent.LinkedBlockingDeque$Node (24%, 57.2mb, Count 4,997,841)
-
openhab> bundle:list
START LEVEL 100 , List Threshold: 50
ID β State β Lvl β Version β Name
βββββΌβββββββββββΌββββββΌβββββββββββββββββββββββββΌββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
15 β Active β 80 β 5.3.1.201602281253 β OSGi JAX-RS Connector
16 β Active β 80 β 2.4.5 β Jackson-annotations
17 β Active β 80 β 2.4.5 β Jackson-core
18 β Active β 80 β 2.4.5 β jackson-databind
19 β Active β 80 β 2.4.5 β Jackson-dataformat-XML
20 β Active β 80 β 2.4.5 β Jackson-dataformat-YAML
21 β Active β 80 β 2.4.5 β Jackson-module-JAXB-annotations
22 β Active β 80 β 2.7.0 β Gson
23 β Active β 80 β 18.0.0 β Guava: Google Core Libraries for Java
24 β Active β 80 β 3.0.0.v201312141243 β Google Guice (No AOP)
25 β Active β 80 β 1.5.8 β swagger-annotations
26 β Active β 80 β 3.19.0.GA β Javassist
28 β Active β 80 β 3.5.2 β JmDNS
30 β Active β 80 β 1.0.0 β Units of Measurement API
32 β Active β 80 β 1.1.0.Final β Bean Validation API
33 β Active β 80 β 2.0.1 β javax.ws.rs-api
34 β Active β 80 β 3.2.0.v201101311130 β ANTLR Runtime
35 β Active β 80 β 3.2.1 β Commons Collections
36 β Active β 80 β 1.1 β Commons Exec
37 β Active β 80 β 2.2.0 β Commons IO
38 β Active β 80 β 2.6 β Commons Lang
48 β Active β 80 β 4.1.5 β Apache Karaf :: OSGi Services :: Event
67 β Active β 80 β 2.11.0.v20150805-0538 β EMF Common
68 β Active β 80 β 2.11.1.v20150805-0538 β EMF Ecore
69 β Active β 80 β 2.11.1.v20150805-0538 β EMF XML/XMI Persistence
70 β Active β 80 β 3.8.0.v20160509-1230 β Common Eclipse Runtime
71 β Active β 80 β 3.6.100.v20160223-2218 β Extension Registry Support
80 β Active β 80 β 9.3.21.v20170918 β Jetty :: Proxy
94 β Active β 80 β 0.2.1.v20170706-0855 β org.eclipse.lsp4j
95 β Active β 80 β 0.2.1.v20170706-0855 β org.eclipse.lsp4j.jsonrpc
96 β Active β 80 β 0.10.0.oh230 β Eclipse SmartHome Config Core
97 β Active β 80 β 0.10.0.oh230 β Eclipse SmartHome Configuration Discovery
98 β Active β 80 β 0.10.0.oh230 β Eclipse SmartHome Configuration mDNS Discovery
99 β Active β 80 β 0.10.0.oh230 β Eclipse SmartHome Config Dispatcher
100 β Active β 75 β 0.10.0.oh230 β Eclipse SmartHome Config XML
101 β Active β 80 β 0.10.0.oh230 β Eclipse SmartHome Core
102 β Active β 80 β 0.10.0.oh230 β Eclipse SmartHome Core Audio
103 β Active β 80 β 0.10.0.oh230 β Eclipse SmartHome AutoUpdate Binding
104 β Active β 80 β 0.10.0.oh230 β Eclipse SmartHome Core Binding XML
105 β Active β 80 β 0.10.0.oh230 β Eclipse SmartHome Core ID
106 β Active β 80 β 0.10.0.oh230 β Eclipse SmartHome Core Persistence
107 β Active β 80 β 0.10.0.oh230 β Eclipse SmartHome Scheduler Service
108 β Active β 80 β 0.10.0.oh230 β Eclipse SmartHome Core Thing
109 β Active β 75 β 0.10.0.oh230 β Eclipse SmartHome Core Thing XML
110 β Active β 80 β 0.10.0.oh230 β Eclipse SmartHome Transformation Service
111 β Active β 80 β 0.10.0.oh230 β Eclipse SmartHome Core Voice
112 β Active β 80 β 0.10.0.oh230 β Eclipse SmartHome Console
113 β Active β 80 β 0.10.0.oh230 β Eclipse SmartHome Console for OSGi runtime Karaf
114 β Active β 80 β 0.10.0.oh230 β Eclipse SmartHome JavaSound I/O, Fragments: 180
115 β Active β 80 β 0.10.0.oh230 β Eclipse SmartHome Monitor
116 β Active β 80 β 0.10.0.oh230 β Eclipse SmartHome Net I/O Bundle
117 β Active β 80 β 0.10.0.oh230 β Eclipse SmartHome REST Interface Bundle
118 β Active β 80 β 0.10.0.oh230 β Eclipse SmartHome Core REST API
119 β Active β 80 β 0.10.0.oh230 β Eclipse SmartHome REST mDNS Announcer
120 β Active β 80 β 0.10.0.oh230 β Eclipse SmartHome REST Interface JAX-RS optimization Bundle
121 β Active β 80 β 0.10.0.oh230 β Eclipse SmartHome Sitemap REST API
122 β Active β 80 β 0.10.0.oh230 β Eclipse SmartHome SSE REST API
123 β Active β 80 β 0.10.0.oh230 β Eclipse SmartHome Voice REST API
124 β Active β 80 β 0.10.0.oh230 β Eclipse SmartHome Bonjour/MDS Service Discovery Bundle
125 β Active β 80 β 0.10.0.oh230 β Eclipse SmartHome Web Audio Support
126 β Active β 80 β 0.10.0.oh230 β Eclipse SmartHome Model Core
127 β Active β 80 β 0.10.0.oh230 β Eclipse SmartHome Item Model
128 β Active β 80 β 0.10.0.oh230 β Eclipse SmartHome Item Model IDE
129 β Active β 80 β 0.10.0.oh230 β Eclipse SmartHome Item Model Runtime
130 β Active β 80 β 0.10.0.oh230 β Eclipse SmartHome Language Server
131 β Active β 80 β 0.10.0.oh230 β Eclipse SmartHome Persistence Model
132 β Active β 80 β 0.10.0.oh230 β Eclipse SmartHome Persistence Model IDE
133 β Active β 80 β 0.10.0.oh230 β Eclipse SmartHome Persistence Runtime
134 β Active β 80 β 0.10.0.oh230 β Eclipse SmartHome Rule Model
135 β Active β 80 β 0.10.0.oh230 β Eclipse SmartHome Rule Model IDE
136 β Active β 80 β 0.10.0.oh230 β Eclipse SmartHome Rule Runtime
137 β Active β 80 β 0.10.0.oh230 β Eclipse SmartHome Script
138 β Active β 80 β 0.10.0.oh230 β Eclipse SmartHome Script Model IDE
139 β Active β 80 β 0.10.0.oh230 β Eclipse SmartHome Script Runtime
140 β Active β 80 β 0.10.0.oh230 β Eclipse SmartHome Sitemap Model
141 β Active β 80 β 0.10.0.oh230 β Eclipse SmartHome Sitemap Model IDE
142 β Active β 80 β 0.10.0.oh230 β Eclipse SmartHome Sitemap Runtime
143 β Active β 80 β 0.10.0.oh230 β Eclipse SmartHome Thing Model
144 β Active β 80 β 0.10.0.oh230 β Eclipse SmartHome Thing Model IDE
145 β Active β 80 β 0.10.0.oh230 β Eclipse SmartHome Thing Model Runtime
146 β Active β 80 β 0.10.0.oh230 β Eclipse SmartHome Json Storage Service
147 β Active β 80 β 0.10.0.oh230 β Eclipse SmartHome UI
148 β Active β 80 β 0.10.0.oh230 β Eclipse SmartHome UI Icons
149 β Active β 80 β 0.10.0.oh230 β Eclipse SmartHome Classic IconSet
150 β Active β 80 β 2.12.0.v20170518-0757 β Xtend Runtime Library
151 β Active β 80 β 2.12.0.v20170518-0757 β Xtend Macro Interfaces
152 β Active β 80 β 2.12.0.v20170518-0959 β Xtext
153 β Active β 80 β 2.12.0.v20170519-0752 β Xtext Common Types
154 β Active β 80 β 2.12.0.v20171017-1700 β Xtext IDE Core
155 β Active β 80 β 2.12.0.v20170518-0959 β Xtext Utility
156 β Active β 80 β 2.12.0.v20170519-0752 β Xbase Model
157 β Active β 80 β 2.12.0.v20170519-0752 β Xbase Generic IDE Services
158 β Active β 80 β 2.12.0.v20170518-0757 β Xbase Runtime Library
173 β Active β 80 β 2.3.0 β JUPnP Library
174 β Active β 80 β 1.9.6 β MIME streaming extension
175 β Active β 80 β 5.0.2 β Require-Bundle Fix :: org.objectweb.asm
177 β Active β 90 β 2.3.0 β openHAB Core
178 β Active β 80 β 2.3.0 β openHAB Karaf Integration
180 β Resolved β 80 β 2.3.0 β openHAB Sound Support, Hosts: 114
181 β Active β 80 β 2.3.0 β openHAB Dashboard UI
186 β Active β 80 β 3.1.4 β Stax2 API
187 β Active β 80 β 1.0.2 β Units of Measurement Common Library
188 β Active β 80 β 1.0.8 β Units of Measurement Implementation for Java SE
189 β Active β 80 β 3.2.0 β Commons Net
190 β Active β 80 β 0.10.0.oh230 β Eclipse SmartHome Basic UI, Fragments: 192
191 β Active β 80 β 0.10.0.oh230 β Eclipse SmartHome Paper UI, Fragments: 195
192 β Resolved β 75 β 2.3.0 β openHAB Basic UI Fragment, Hosts: 190
193 β Active β 80 β 2.3.0 β HABPanel User Interface
194 β Active β 80 β 2.3.0 β HomeBuilder User Interface
195 β Resolved β 75 β 2.3.0 β openHAB Paper UI Theme Fragment, Hosts: 191
196 β Active β 80 β 1.6.0 β Commons Codec
197 β Active β 80 β 4.2.3 β Apache HttpClient OSGi bundle
198 β Active β 80 β 4.2.3 β Apache HttpCore OSGi bundle
199 β Active β 80 β 3.1.0.7 β Apache ServiceMix :: Bundles :: commons-httpclient
200 β Active β 80 β 1.12.0 β openHAB MQTT Binding
201 β Active β 80 β 2.3.0 β openHAB 1.x Compatibility Layer
202 β Active β 80 β 1.12.0 β openHAB MQTT Transport Bundle
203 β Active β 80 β 1.12.0 β openHAB RRD4j Persistence Bundle
205 β Active β 80 β 1.12.0 β openHAB Expire Binding
206 β Active β 80 β 1.12.0 β openHAB Weather Binding
- openhab.log: Redirecting...
- services/weather.cfg
apikey.ForecastIo=foobar
location.karlsruhe.latitude=49.006889
location.karlsruhe.longitude=8.403653
location.karlsruhe.provider=ForecastIo
location.karlsruhe.language=de
location.karlsruhe.updateInterval=5
- Items: only two few temperature/humidity/pressure sensors and the related values from the weather service
- MQTT broker runinng
- RRD4J installed:
- persistence/rrd4j.persist
Strategies {
everyMinute : "0 * * * * ?"
everyHour : "0 0 * * * ?"
everyDay : "0 0 0 * * ?"
default = everyChange
}
Items {
// persist everything when the value is updated, just a default, and restore them from database on startup
* : strategy = everyHour, restoreOnStartup
gChart* : strategy = everyMinute
// alternatively you can add specific items here, such as
//Bedroom_Humidity,JamesInOffice : strategy = everyMinute
}
- sitemaps/charts_bar.sitemap (+ one other nearly identical sitemap)
sitemap charts_bar label="Bar Charts" {
Frame label="Temperature & humidity" {
Text item=bar_temp1
Text item=bar_temp2
Text item=outside_temp
Text item=bar_humid
Text item=outside_humid
Text item=bar_pressure
Text item=outside_pressure
Switch item=Temp_Chart_Period label="Chart period" mappings=[0="Hour", 1="Day", 2="Week"]
Chart item=gTempBar period=h refresh=600 visibility=[Temp_Chart_Period==0] legend=true
Chart item=gTempBar period=D refresh=900 visibility=[Temp_Chart_Period==1, Temp_Chart_Period=="NULL"] legend=true
Chart item=gTempBar period=W refresh=600 visibility=[Temp_Chart_Period==2] legend=true
Chart item=gHumidBar period=h refresh=900 visibility=[Temp_Chart_Period==0] legend=true
Chart item=gHumidBar period=D refresh=3600 visibility=[Temp_Chart_Period==1, Temp_Chart_Period=="NULL"] legend=true
Chart item=gHumidBar period=W refresh=3600 visibility=[Temp_Chart_Period==2] legend=true
Chart item=gPressBar period=h refresh=900 visibility=[Temp_Chart_Period==0] legend=true
Chart item=gPressBar period=D refresh=3600 visibility=[Temp_Chart_Period==1, Temp_Chart_Period=="NULL"] legend=true
Chart item=gPressBar period=W refresh=3600 visibility=[Temp_Chart_Period==2] legend=true
}
}