High CPU-Load / Memory-Usage Snapshot >=1579

I just updated my installation from snapshot 1578 to 1581 and realized that there is a significant change on the CPU-Load with the exact same configuration:

1578: 10-15%
1579-1581: >30%

Its on a Raspi 3 and Java 8 V202

Does someone else already have 1579, 1580 or 1581 without this issue? I have quite a lot of installed bindings and tried to stop the bundles one by one. But without success :pensive:

Back to 1578 and everything is fine…

Saw a memory encrease and yes more cpu load on this thread

Yes , memory increase as well. This is what I have with 1582 compared to 1578 (red):

Is there a way/command to analyse what process or bundle does cause this? With top I only see this:

And with the console-command β€œbundle:list” there is no cpu load visible.

For me the same, CPU-Load an Memory make system unusable. Have 3 Minutes delay in events.
back to previous Builds and everything is ok.

Hi all,

You can try to identify the causing thread by running the shell:threads --list command from Karaf console. It will show you all running openHAB related threads. Copy & pate the result into e.g. Excel and sort by column β€œCPU time”.

This is what I get with 1583 after about 30 minutes:

Looks like that the ESH-OSGiEventManager is the root cause…

1 Like

The list does not surprise me. When the β€œESH-OSGiEventManager” is the leading thread there is nothing to worry about. But what caught my attention is that it is ten times higher than the second position.

I compared it to my live environment (OH 2.5.0.M1) which has been running for nearly eleven days and the CPU time for the β€œESH-OSGiEventManager” was (only) almost the same like yours. Followed by a ~20% less one. A second comparison with a test environment (OH 2.5.0.S1583) running for approximately three hours leads to a similar ratio as my prod system.

Today I tried again with 1587 but unfortunately no change for me. Yesterday I also tried to delimite this behaviour by uninstalling bindings. With just a few (2-3) bindings it looks good, but the more bindings the more CPU-Load and Memory-Use. Switching something to ON or OFF takes more than 1 Minute :anguished:

I did upload the complete Thread-List here:

One Tab with 1578 running 1 Day and the other Tab with 1587 after 1 Hour. The only big difference is the OSGiEventManager. Everything else looks good for me.

If someone has an idea or does see something in the thread list that should not be please let me know :wink:

BTW…Bindings I have installed:

binding = hue,anel1,http1,netatmo,network,systeminfo,astro,tcp1,zwave,mqtt,exec,modbus,sonos,feed,homematic,miio,gpstracker,wol1,meteoblue,harmonyhub

The same for me me, running 1578 fine, but >= 1579 results in very slow Event-Handling.

Same here with 1587:
thread --list :


Top:

Installed bundles:
bundle:list
START LEVEL 100 , List Threshold: 50
ID β”‚ State β”‚ Lvl β”‚ Version β”‚ Name
────┼─────────┼─────┼───────────────────────┼────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
20 β”‚ Active β”‚ 80 β”‚ 5.3.1.201602281253 β”‚ OSGi JAX-RS Connector
21 β”‚ Active β”‚ 80 β”‚ 2.8.2.v20180104-1110 β”‚ Gson: Google Json Library for Java
22 β”‚ Active β”‚ 80 β”‚ 18.0.0 β”‚ Guava: Google Core Libraries for Java
23 β”‚ Active β”‚ 80 β”‚ 2.4.0.201809231018 β”‚ Gardena Binding
24 β”‚ Active β”‚ 80 β”‚ 2.4.0.201809231018 β”‚ MaxCube Binding
25 β”‚ Active β”‚ 80 β”‚ 21.0.0 β”‚ Guava: Google Core Libraries for Java
28 β”‚ Active β”‚ 80 β”‚ 3.0.0.v201312141243 β”‚ Google Guice (No AOP)
29 β”‚ Active β”‚ 80 β”‚ 3.18.1.GA β”‚ Javassist
32 β”‚ Active β”‚ 80 β”‚ 3.5.5 β”‚ JmDNS
34 β”‚ Active β”‚ 80 β”‚ 1.0.0 β”‚ Units of Measurement API
36 β”‚ Active β”‚ 80 β”‚ 1.1.0.Final β”‚ Bean Validation API
38 β”‚ Active β”‚ 80 β”‚ 2.0.1 β”‚ javax.ws.rs-api
39 β”‚ Active β”‚ 80 β”‚ 2.9.2 β”‚ Joda-Time
40 β”‚ Active β”‚ 80 β”‚ 3.2.0.v201101311130 β”‚ ANTLR Runtime
42 β”‚ Active β”‚ 80 β”‚ 3.2.1 β”‚ Commons Collections
43 β”‚ Active β”‚ 80 β”‚ 1.1 β”‚ Commons Exec
44 β”‚ Active β”‚ 80 β”‚ 2.2.0 β”‚ Commons IO
45 β”‚ Active β”‚ 80 β”‚ 2.6 β”‚ Commons Lang
54 β”‚ Active β”‚ 80 β”‚ 4.2.4 β”‚ Apache Karaf :: OSGi Services :: Event
69 β”‚ Active β”‚ 80 β”‚ 1.4.7.1 β”‚ Apache ServiceMix :: Bundles :: xstream
71 β”‚ Active β”‚ 80 β”‚ 4.12.0 β”‚ Apache XBean OSGI Bundle Utilities
72 β”‚ Active β”‚ 80 β”‚ 4.12.0 β”‚ Apache XBean :: Classpath Resource Finder
73 β”‚ Active β”‚ 80 β”‚ 2.12.0.v20160420-0247 β”‚ EMF Common
74 β”‚ Active β”‚ 80 β”‚ 2.12.0.v20160420-0247 β”‚ EMF Ecore
75 β”‚ Active β”‚ 80 β”‚ 2.11.0.v20160420-0247 β”‚ EMF Change Model
76 β”‚ Active β”‚ 80 β”‚ 2.12.0.v20160420-0247 β”‚ EMF XML/XMI Persistence
77 β”‚ Active β”‚ 80 β”‚ 3.9.0.v20170207-1454 β”‚ Common Eclipse Runtime
82 β”‚ Active β”‚ 80 β”‚ 9.4.11.v20180605 β”‚ Jetty :: Http Utility
89 β”‚ Active β”‚ 80 β”‚ 9.4.12.v20180830 β”‚ Jetty :: Proxy
101 β”‚ Active β”‚ 80 β”‚ 9.4.11.v20180605 β”‚ Jetty :: Websocket :: Common
108 β”‚ Active β”‚ 80 β”‚ 0.6.0.v20181130-0903 β”‚ org.eclipse.lsp4j
109 β”‚ Active β”‚ 80 β”‚ 0.6.0.v20181130-0903 β”‚ org.eclipse.lsp4j.jsonrpc
110 β”‚ Active β”‚ 80 β”‚ 2.17.0.v20190304-0518 β”‚ Xtend Runtime Library
111 β”‚ Active β”‚ 80 β”‚ 2.17.0.v20190304-0518 β”‚ Xtend Macro Interfaces
112 β”‚ Active β”‚ 80 β”‚ 2.17.0.v20190304-0545 β”‚ Xtext
113 β”‚ Active β”‚ 80 β”‚ 2.17.0.v20190304-0626 β”‚ Xtext Common Types
114 β”‚ Active β”‚ 80 β”‚ 2.17.0.v20190304-0545 β”‚ Xtext IDE Core
115 β”‚ Active β”‚ 80 β”‚ 2.17.0.v20190304-0545 β”‚ Xtext Utility
116 β”‚ Active β”‚ 80 β”‚ 2.17.0.v20190304-0626 β”‚ Xbase Model
117 β”‚ Active β”‚ 80 β”‚ 2.17.0.v20190304-0626 β”‚ Xbase Generic IDE Services
118 β”‚ Active β”‚ 80 β”‚ 2.17.0.v20190304-0518 β”‚ Xbase Runtime Library
133 β”‚ Active β”‚ 80 β”‚ 1.9.6 β”‚ MIME streaming extension
135 β”‚ Active β”‚ 80 β”‚ 7.0.0 β”‚ org.objectweb.asm.commons
136 β”‚ Active β”‚ 80 β”‚ 7.0.0 β”‚ org.objectweb.asm.tree
137 β”‚ Active β”‚ 80 β”‚ 2.5.0.201905050301 β”‚ openHAB Core :: Bundles :: Core
138 β”‚ Active β”‚ 80 β”‚ 2.5.0.201905050307 β”‚ openHAB Core :: Bundles :: Audio
139 β”‚ Active β”‚ 80 β”‚ 2.5.0.201905050318 β”‚ openHAB Core :: Bundles :: OAuth2Client
140 β”‚ Active β”‚ 80 β”‚ 2.5.0.201905050316 β”‚ openHAB Core :: Bundles :: Binding XML
141 β”‚ Active β”‚ 90 β”‚ 2.5.0.201905050313 β”‚ openHAB Core :: Bundles :: Boot
142 β”‚ Active β”‚ 80 β”‚ 2.5.0.201905050302 β”‚ openHAB Core :: Bundles :: Configuration Core
143 β”‚ Waiting β”‚ 80 β”‚ 2.5.0.201905050304 β”‚ openHAB Core :: Bundles :: Configuration Discovery
144 β”‚ Active β”‚ 80 β”‚ 2.5.0.201905050324 β”‚ openHAB Core :: Bundles :: Configuration mDNS Discovery
145 β”‚ Active β”‚ 80 β”‚ 2.5.0.201905050325 β”‚ openHAB Core :: Bundles :: Configuration Dispatcher
146 β”‚ Active β”‚ 75 β”‚ 2.5.0.201905050315 β”‚ openHAB Core :: Bundles :: Configuration XML
147 β”‚ Active β”‚ 80 β”‚ 2.5.0.201905050316 β”‚ openHAB Core :: Bundles :: ID
148 β”‚ Active β”‚ 80 β”‚ 2.5.0.201905050303 β”‚ openHAB Core :: Bundles :: Console
149 β”‚ Active β”‚ 80 β”‚ 2.5.0.201905050319 β”‚ openHAB Core :: Bundles :: Console for OSGi runtime Karaf
150 β”‚ Active β”‚ 80 β”‚ 2.5.0.201905050307 β”‚ openHAB Core :: Bundles :: HTTP Interface
152 β”‚ Active β”‚ 80 β”‚ 2.5.0.201905050320 β”‚ openHAB Core :: Bundles :: Monitor
153 β”‚ Active β”‚ 80 β”‚ 2.5.0.201905050304 β”‚ openHAB Core :: Bundles :: Network I/O
154 β”‚ Active β”‚ 80 β”‚ 2.5.0.201905050316 β”‚ openHAB Core :: Bundles :: REST Interface
155 β”‚ Active β”‚ 80 β”‚ 2.5.0.201905050320 β”‚ openHAB Core :: Bundles :: REST Interface
156 β”‚ Active β”‚ 80 β”‚ 2.5.0.201905050321 β”‚ openHAB Core :: Bundles :: REST mDNS Announcer
157 β”‚ Active β”‚ 80 β”‚ 2.5.0.201905050321 β”‚ openHAB Core :: Bundles :: REST JAX-RS Optimizations
158 β”‚ Active β”‚ 80 β”‚ 2.5.0.201905050321 β”‚ openHAB Core :: Bundles :: Sitemap REST Interface
159 β”‚ Active β”‚ 80 β”‚ 2.5.0.201905050322 β”‚ openHAB Core :: Bundles :: SSE Interface
160 β”‚ Active β”‚ 80 β”‚ 2.5.0.201905050322 β”‚ openHAB Core :: Bundles :: Voice REST Interface
161 β”‚ Active β”‚ 80 β”‚ 2.5.0.201905050318 β”‚ openHAB Core :: Bundles :: mDNS Service
162 β”‚ Active β”‚ 80 β”‚ 2.5.0.201905050315 β”‚ openHAB Core :: Bundles :: Karaf Integration
163 β”‚ Active β”‚ 80 β”‚ 2.5.0.201905050305 β”‚ openHAB Core :: Bundles :: Model Core
164 β”‚ Active β”‚ 80 β”‚ 2.5.0.201905050314 β”‚ openHAB Core :: Bundles :: Model Items
165 β”‚ Active β”‚ 80 β”‚ 2.5.0.201905050327 β”‚ openHAB Core :: Bundles :: Model Item IDE
166 β”‚ Active β”‚ 80 β”‚ 2.5.0.201905050327 β”‚ openHAB Core :: Bundles :: Model Items Runtime
167 β”‚ Active β”‚ 80 β”‚ 2.5.0.201905050331 β”‚ openHAB Core :: Bundles :: Language Server
168 β”‚ Active β”‚ 80 β”‚ 2.5.0.201905050306 β”‚ openHAB Core :: Bundles :: Model Persistence
169 β”‚ Active β”‚ 80 β”‚ 2.5.0.201905050327 β”‚ openHAB Core :: Bundles :: Model Persistence IDE
170 β”‚ Active β”‚ 80 β”‚ 2.5.0.201905050331 β”‚ openHAB Core :: Bundles :: Model Persistence Runtime
171 β”‚ Active β”‚ 80 β”‚ 2.5.0.201905050310 β”‚ openHAB Core :: Bundles :: Model Rules
172 β”‚ Active β”‚ 80 β”‚ 2.5.0.201905050328 β”‚ openHAB Core :: Bundles :: Model Rule IDE
173 β”‚ Active β”‚ 80 β”‚ 2.5.0.201905050311 β”‚ openHAB Core :: Bundles :: Model Rules Runtime
174 β”‚ Active β”‚ 80 β”‚ 2.5.0.201905050309 β”‚ openHAB Core :: Bundles :: Model Script
175 β”‚ Active β”‚ 80 β”‚ 2.5.0.201905050329 β”‚ openHAB Core :: Bundles :: Model Script IDE
176 β”‚ Active β”‚ 80 β”‚ 2.5.0.201905050331 β”‚ openHAB Core :: Bundles :: Model Script Runtime
177 β”‚ Active β”‚ 80 β”‚ 2.5.0.201905050312 β”‚ openHAB Core :: Bundles :: Model Sitemap
178 β”‚ Active β”‚ 80 β”‚ 2.5.0.201905050329 β”‚ openHAB Core :: Bundles :: Model Sitemap IDE
179 β”‚ Active β”‚ 80 β”‚ 2.5.0.201905050332 β”‚ openHAB Core :: Bundles :: Model Sitemap Runtime
180 β”‚ Active β”‚ 80 β”‚ 2.5.0.201905050330 β”‚ openHAB Core :: Bundles :: Model Thing
181 β”‚ Active β”‚ 80 β”‚ 2.5.0.201905050330 β”‚ openHAB Core :: Bundles :: Model Thing IDE
182 β”‚ Active β”‚ 80 β”‚ 2.5.0.201905050332 β”‚ openHAB Core :: Bundles :: Model Thing Runtime
183 β”‚ Active β”‚ 80 β”‚ 2.5.0.201905050306 β”‚ openHAB Core :: Bundles :: Persistence
184 β”‚ Active β”‚ 80 β”‚ 2.5.0.201905050304 β”‚ openHAB Core :: Bundles :: Scheduler Service
185 β”‚ Active β”‚ 80 β”‚ 2.5.0.201905050317 β”‚ openHAB Core :: Bundles :: Semantics
186 β”‚ Active β”‚ 80 β”‚ 2.5.0.201905050332 β”‚ openHAB Core :: Bundles :: JSON Storage
187 β”‚ Active β”‚ 80 β”‚ 2.5.0.201905050303 β”‚ openHAB Core :: Bundles :: Thing
188 β”‚ Active β”‚ 75 β”‚ 2.5.0.201905050317 β”‚ openHAB Core :: Bundles :: Thing XML
189 β”‚ Active β”‚ 80 β”‚ 2.5.0.201905050307 β”‚ openHAB Core :: Bundles :: Transformation Service
190 β”‚ Active β”‚ 80 β”‚ 2.5.0.201905050314 β”‚ openHAB Core :: Bundles :: UI
191 β”‚ Active β”‚ 80 β”‚ 2.5.0.201905050332 β”‚ openHAB Core :: Bundles :: UI Icon Support
192 β”‚ Active β”‚ 80 β”‚ 2.5.0.201905050308 β”‚ openHAB Core :: Bundles :: Voice
202 β”‚ Active β”‚ 80 β”‚ 1.0.2 β”‚ Units of Measurement Common Library
203 β”‚ Active β”‚ 80 β”‚ 1.0.8 β”‚ Units of Measurement Implementation for Java SE
206 β”‚ Active β”‚ 80 β”‚ 2.9.8 β”‚ Jackson-annotations
207 β”‚ Active β”‚ 80 β”‚ 2.9.8 β”‚ Jackson-core
208 β”‚ Active β”‚ 80 β”‚ 2.9.8 β”‚ jackson-databind
209 β”‚ Active β”‚ 80 β”‚ 2.6.0 β”‚ Protocol Buffer Java API
210 β”‚ Active β”‚ 80 β”‚ 3.12.1 β”‚ OkHttp
211 β”‚ Active β”‚ 80 β”‚ 1.15.0 β”‚ Okio
212 β”‚ Active β”‚ 80 β”‚ 1.0.0 β”‚ Engine.IO Client
213 β”‚ Active β”‚ 80 β”‚ 1.0.0 β”‚ Socket.IO Client
214 β”‚ Active β”‚ 80 β”‚ 1.9.2 β”‚ Jackson JSON processor
215 β”‚ Active β”‚ 80 β”‚ 1.9.2 β”‚ Data mapper for Jackson JSON processor
216 β”‚ Active β”‚ 80 β”‚ 1.0.1 β”‚ JLayer
217 β”‚ Active β”‚ 80 β”‚ 20180813.0.0 β”‚ JSON in Java
218 β”‚ Active β”‚ 80 β”‚ 1.10.0 β”‚ Apache Commons Codec
219 β”‚ Active β”‚ 80 β”‚ 3.3.0 β”‚ Commons Net
220 β”‚ Active β”‚ 80 β”‚ 4.2.3 β”‚ Apache HttpClient OSGi bundle
221 β”‚ Active β”‚ 80 β”‚ 4.2.3 β”‚ Apache HttpCore OSGi bundle
222 β”‚ Active β”‚ 80 β”‚ 3.1.0.7 β”‚ Apache ServiceMix :: Bundles :: commons-httpclient
223 β”‚ Active β”‚ 80 β”‚ 2.5.2 β”‚ JUPnP Library
224 β”‚ Active β”‚ 80 β”‚ 2.5.0.201905050406 β”‚ openHAB Add-ons :: Bundles :: Astro Binding
225 β”‚ Active β”‚ 80 β”‚ 2.5.0.201905050406 β”‚ openHAB Add-ons :: Bundles :: AVM FRITZ! Binding
226 β”‚ Active β”‚ 80 β”‚ 2.5.0.201905050408 β”‚ openHAB Add-ons :: Bundles :: Chromecast Binding
228 β”‚ Active β”‚ 80 β”‚ 1.14.0.201905050308 β”‚ openHAB HTTP Binding
229 β”‚ Active β”‚ 80 β”‚ 2.5.0.201905050413 β”‚ openHAB Add-ons :: Bundles :: Network Binding
230 β”‚ Active β”‚ 80 β”‚ 2.5.0.201905050414 β”‚ openHAB Add-ons :: Bundles :: SamsungTV Binding
231 β”‚ Active β”‚ 80 β”‚ 1.14.0.201905050308 β”‚ openHAB TCP-UDP Binding
232 β”‚ Active β”‚ 80 β”‚ 1.14.0.201905050308 β”‚ Model Model
233 β”‚ Active β”‚ 80 β”‚ 1.14.0.201905050308 β”‚ openHAB Weather Binding
234 β”‚ Active β”‚ 80 β”‚ 2.5.0.201905050314 β”‚ openHAB Core :: Bundles :: 1.x Compatibility Layer
235 β”‚ Active β”‚ 80 β”‚ 2.5.0.201905050325 β”‚ openHAB Core :: Bundles :: Configuration UPnP Discovery
236 β”‚ Active β”‚ 80 β”‚ 2.5.0.201905050323 β”‚ openHAB Core :: Bundles :: UPnP Transport
237 β”‚ Active β”‚ 80 β”‚ 2.5.0.201905050417 β”‚ openHAB Add-ons :: Bundles :: Java Sound Support
238 β”‚ Active β”‚ 80 β”‚ 2.5.0.201905050417 β”‚ openHAB Add-ons :: Bundles :: openHAB Cloud Connector
239 β”‚ Active β”‚ 80 β”‚ 2.5.0.201905050417 β”‚ openHAB Add-ons :: Bundles :: Web Audio Support
240 β”‚ Active β”‚ 80 β”‚ 2.5.0.201905041024 β”‚ openHAB UI :: Basic UI
241 β”‚ Active β”‚ 80 β”‚ 2.5.0.201905041018 β”‚ openHAB UI :: Dashboard UI
242 β”‚ Active β”‚ 80 β”‚ 2.5.0.201905041033 β”‚ openHAB UI :: HomeBuilder UI
243 β”‚ Active β”‚ 80 β”‚ 2.5.0.201905041038 β”‚ openHAB UI :: Classic Icon Set
244 β”‚ Active β”‚ 80 β”‚ 2.5.0.201905041038 β”‚ openHAB UI :: Paper UI
245 β”‚ Active β”‚ 80 β”‚ 2.5.0.201905041028 β”‚ openHAB UI :: HABmin User Interface
246 β”‚ Active β”‚ 80 β”‚ 2.5.0.201905041031 β”‚ openHAB UI :: HABPanel user interface
247 β”‚ Active β”‚ 80 β”‚ 2.5.0.201905050419 β”‚ openHAB Add-ons :: Bundles :: Mary Text-to-Speech
248 β”‚ Active β”‚ 80 β”‚ 0.11.0 β”‚ ChromeCast Java API v2
250 β”‚ Active β”‚ 80 β”‚ 2.4.0.201806041651 β”‚ Heos Binding
251 β”‚ Active β”‚ 80 β”‚ 2.4.0.201809140857 β”‚ Spotify Binding

Can confirm, since 1579 opehHAB responds very slowly.

Any prograss in finding what is causing this ?

No, in the meantime someone else did open a another thread:

As mentioned there, I did install a complete new openhabian setup but finally ended up in the same behaviour :frowning: I have no clue anymore and also can’t reduce this issue to e.g. one binding.

Any news here?
Looks like i have the same problem: High CPU-Usage on Snapshot #1597

Hi Thomas,

Please follow this issue:

Solved in Snapshot 1618 :+1:

1 Like