-
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: https://nopaste.xyz/?0ece97af9dbb9fd9#nA5uQn1tiu4+TPnzuhmcf4fErIyPLl4FY03vOm6fBtw=
- 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
}
}