Memory Usage auswerten/grafisch darstellen

Einrichtung der openHAB Umgebung und allgemeine Konfigurationsthemen.

Moderatoren: seppy, udo1toni

Antworten
DavGre
Beiträge: 84
Registriert: 11. Mär 2019 15:47
Answers: 0

Memory Usage auswerten/grafisch darstellen

Beitrag von DavGre »

Hallo,

seit einigen Wochen crasht mein Openhab (2.5.6 auf einem Raspi 3B) in regelmäßigen Abständen. Ungefähr 1-2 mal pro Woche hängt sich OH auf und es hilft nur ein Neustart. Ich habe den Verdacht, dass die Speicherauslastung in die Höhe schießt und OH sich dann aufhängt. Die Problematik mit dem Echo Control Binding ist mir bekannt. Das neueste Update, welches die Probleme beheben soll, habe ich auch vor ca. zwei Wochen schon eingespielt.

Da das Problem aber immer noch auftritt, würde ich gerne selbst mal nachforschen, ob sich mein Verdacht (Speicherproblem) überhaupt bestätigt. Dazu möchte ich die Openhab Memory Auslastung ganz gerne grafisch darstellen, wie es z.B. hier der Fall ist: https://community.openhab.org/t/openhab ... swap/63394

Kann ich das über die Konsole auslesen oder muss ich die Sache anders angehen?

Edit: Beitrag verschoben

heiko74
Beiträge: 14
Registriert: 5. Apr 2019 21:38
Answers: 0

Re: Memory Usage auswerten/grafisch darstellen

Beitrag von heiko74 »

Hallo,
es gibt ein SystenInfo-Binding.
https://www.openhab.org/addons/bindings/systeminfo/
Das dürfte eine einfache Methode sein. Hier kannst du monitoren, wiviel du willst. Wenn dei Pi abstürzt gibt es halt keine neuen Einträge mehr, aber du kannst eine Tendenz ablesen.

DavGre
Beiträge: 84
Registriert: 11. Mär 2019 15:47
Answers: 0

Re: Memory Usage auswerten/grafisch darstellen

Beitrag von DavGre »

heiko74 hat geschrieben: 27. Jul 2020 19:51 Hallo,
es gibt ein SystenInfo-Binding.
https://www.openhab.org/addons/bindings/systeminfo/
Das dürfte eine einfache Methode sein. Hier kannst du monitoren, wiviel du willst. Wenn dei Pi abstürzt gibt es halt keine neuen Einträge mehr, aber du kannst eine Tendenz ablesen.
Das habe ich mir zwischenzeitlich installiert. Ich werde das jetzt mal beobachten.
Eine Tendenz ist jetzt aber leider schon erkennbar. Die Memory Auslastung steigt aktuell stündlich um ca. 0,5 % und liegt derzeit bei knapp 60 %.

Ich werde mal ein paar Tage abwarten und mich ggf. dann erneut hier melden/berichten.

Benutzeravatar
udo1toni
Beiträge: 15249
Registriert: 11. Apr 2018 18:05
Answers: 242
Wohnort: Darmstadt

Re: Memory Usage auswerten/grafisch darstellen

Beitrag von udo1toni »

Was hast Du denn für Bindings im Einsatz?
openHAB4.3.3 stable in einem Debian-Container (bookworm) (Proxmox 8.3.5, LXC), mit openHABian eingerichtet

DavGre
Beiträge: 84
Registriert: 11. Mär 2019 15:47
Answers: 0

Re: Memory Usage auswerten/grafisch darstellen

Beitrag von DavGre »

udo1toni hat geschrieben: 29. Jul 2020 21:52 Was hast Du denn für Bindings im Einsatz?
Hier eine Übersicht, was "bundle:list" ausspuckt:

Code: Alles auswählen

START LEVEL 100 , List Threshold: 50
 ID │ State  │ Lvl │ Version                 │ Name
────┼────────┼─────┼─────────────────────────┼──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
 19 │ Active │  80 │ 5.3.1.201602281253      │ OSGi JAX-RS Connector
 20 │ Active │  80 │ 2.8.2.v20180104-1110    │ Gson: Google Json Library for Java
 21 │ Active │  80 │ 18.0.0                  │ Guava: Google Core Libraries for Java
 22 │ Active │  80 │ 27.1.0.jre              │ Guava: Google Core Libraries for Java
 23 │ Active │  80 │ 1.0.1                   │ Guava InternalFutureFailureAccess and InternalFutures
 24 │ Active │  80 │ 3.0.0.v201312141243     │ Google Guice (No AOP)
 25 │ Active │  80 │ 4.8.35.v20190528-1517   │ ClassGraph
 26 │ Active │  80 │ 3.18.1.GA               │ Javassist
 29 │ Active │  80 │ 3.5.5                   │ JmDNS
 31 │ Active │  80 │ 1.0.0                   │ Units of Measurement API
 33 │ Active │  80 │ 1.1.0.Final             │ Bean Validation API
 35 │ Active │  80 │ 2.0.1                   │ javax.ws.rs-api
 36 │ Active │  80 │ 2.9.2                   │ Joda-Time
 37 │ Active │  80 │ 0.5.8                   │ Jollyday
 38 │ Active │  80 │ 3.2.0.v201101311130     │ ANTLR Runtime
 40 │ Active │  80 │ 1.1                     │ Commons Exec
 41 │ Active │  80 │ 2.2.0                   │ Commons IO
 42 │ Active │  80 │ 2.6                     │ Commons Lang
 51 │ Active │  80 │ 4.2.7                   │ Apache Karaf :: OSGi Services :: Event
 66 │ Active │  80 │ 1.4.7.1                 │ Apache ServiceMix :: Bundles :: xstream
 69 │ Active │  80 │ 4.14.0                  │ Apache XBean OSGI Bundle Utilities
 70 │ Active │  80 │ 4.14.0                  │ Apache XBean :: Classpath Resource Finder
 71 │ Active │  80 │ 2.12.0.v20160420-0247   │ EMF Common
 72 │ Active │  80 │ 2.12.0.v20160420-0247   │ EMF Ecore
 73 │ Active │  80 │ 2.11.0.v20160420-0247   │ EMF Change Model
 74 │ Active │  80 │ 2.12.0.v20160420-0247   │ EMF XML/XMI Persistence
 75 │ Active │  80 │ 3.10.400.v20190516-1504 │ Common Eclipse Runtime
104 │ Active │  80 │ 0.8.0.v20190822-0801    │ org.eclipse.lsp4j
105 │ Active │  80 │ 0.8.0.v20190822-0801    │ org.eclipse.lsp4j.jsonrpc
106 │ Active │  80 │ 2.19.0.v20190902-0728   │ Xtend Runtime Library
107 │ Active │  80 │ 2.19.0.v20190902-0728   │ Xtend Macro Interfaces
108 │ Active │  80 │ 2.19.0.v20190902-0737   │ Xtext
109 │ Active │  80 │ 2.19.0.v20190902-0952   │ Xtext Common Types
110 │ Active │  80 │ 2.19.0.v20190902-0737   │ Xtext IDE Core
111 │ Active │  80 │ 2.19.0.v20190902-0737   │ Xtext Utility
112 │ Active │  80 │ 2.19.0.v20190902-0952   │ Xbase Model
113 │ Active │  80 │ 2.19.0.v20190902-0952   │ Xbase Generic IDE Services
114 │ Active │  80 │ 2.19.0.v20190902-0728   │ Xbase Runtime Library
129 │ Active │  80 │ 1.9.6                   │ MIME streaming extension
131 │ Active │  80 │ 7.1.0                   │ org.objectweb.asm.commons
132 │ Active │  80 │ 7.1.0                   │ org.objectweb.asm.tree
133 │ Active │  80 │ 2.5.0                   │ openHAB Core :: Bundles :: Core
134 │ Active │  80 │ 2.5.0                   │ openHAB Core :: Bundles :: Audio
135 │ Active │  80 │ 2.5.0                   │ openHAB Core :: Bundles :: OAuth2Client
136 │ Active │  80 │ 2.5.0                   │ openHAB Core :: Bundles :: Binding XML
137 │ Active │  90 │ 2.5.0                   │ openHAB Core :: Bundles :: Boot
138 │ Active │  80 │ 2.5.0                   │ openHAB Core :: Bundles :: Configuration Core
139 │ Active │  80 │ 2.5.0                   │ openHAB Core :: Bundles :: Configuration Discovery
140 │ Active │  80 │ 2.5.0                   │ openHAB Core :: Bundles :: Configuration mDNS Discovery
141 │ Active │  80 │ 2.5.0                   │ openHAB Core :: Bundles :: Configuration Dispatcher
142 │ Active │  75 │ 2.5.0                   │ openHAB Core :: Bundles :: Configuration XML
143 │ Active │  80 │ 2.5.0                   │ openHAB Core :: Bundles :: Ephemeris
144 │ Active │  80 │ 2.5.0                   │ openHAB Core :: Bundles :: ID
145 │ Active │  80 │ 2.5.0                   │ openHAB Core :: Bundles :: Console
146 │ Active │  80 │ 2.5.0                   │ openHAB Core :: Bundles :: Console for OSGi runtime Karaf
147 │ Active │  80 │ 2.5.0                   │ openHAB Core :: Bundles :: HTTP Interface
149 │ Active │  80 │ 2.5.0                   │ openHAB Core :: Bundles :: Monitor
150 │ Active │  80 │ 2.5.0                   │ openHAB Core :: Bundles :: Network I/O
151 │ Active │  80 │ 2.5.0                   │ openHAB Core :: Bundles :: REST Interface
152 │ Active │  80 │ 2.5.0                   │ openHAB Core :: Bundles :: Audio REST Interface
153 │ Active │  80 │ 2.5.0                   │ openHAB Core :: Bundles :: REST Interface :: Core
154 │ Active │  80 │ 2.5.0                   │ openHAB Core :: Bundles :: REST mDNS Announcer
155 │ Active │  80 │ 2.5.0                   │ openHAB Core :: Bundles :: REST JAX-RS Optimizations
156 │ Active │  80 │ 2.5.0                   │ openHAB Core :: Bundles :: Sitemap REST Interface
157 │ Active │  80 │ 2.5.0                   │ openHAB Core :: Bundles :: SSE Interface
158 │ Active │  80 │ 2.5.0                   │ openHAB Core :: Bundles :: Voice REST Interface
159 │ Active │  80 │ 2.5.0                   │ openHAB Core :: Bundles :: mDNS Service
160 │ Active │  80 │ 2.5.0                   │ openHAB Core :: Bundles :: Karaf Integration
161 │ Active │  80 │ 2.5.0                   │ openHAB Core :: Bundles :: Model Core
162 │ Active │  80 │ 2.5.0                   │ openHAB Core :: Bundles :: Model Items
163 │ Active │  80 │ 2.5.0                   │ openHAB Core :: Bundles :: Model Item IDE
164 │ Active │  80 │ 2.5.0                   │ openHAB Core :: Bundles :: Model Items Runtime
165 │ Active │  80 │ 2.5.0                   │ openHAB Core :: Bundles :: Language Server
166 │ Active │  80 │ 2.5.0                   │ openHAB Core :: Bundles :: Model Persistence
167 │ Active │  80 │ 2.5.0                   │ openHAB Core :: Bundles :: Model Persistence IDE
168 │ Active │  80 │ 2.5.0                   │ openHAB Core :: Bundles :: Model Persistence Runtime
169 │ Active │  80 │ 2.5.0                   │ openHAB Core :: Bundles :: Model Rules
170 │ Active │  80 │ 2.5.0                   │ openHAB Core :: Bundles :: Model Rule IDE
171 │ Active │  80 │ 2.5.0                   │ openHAB Core :: Bundles :: Model Rules Runtime
172 │ Active │  80 │ 2.5.0                   │ openHAB Core :: Bundles :: Model Script
173 │ Active │  80 │ 2.5.0                   │ openHAB Core :: Bundles :: Model Script IDE
174 │ Active │  80 │ 2.5.0                   │ openHAB Core :: Bundles :: Model Script Runtime
175 │ Active │  80 │ 2.5.0                   │ openHAB Core :: Bundles :: Model Sitemap
176 │ Active │  80 │ 2.5.0                   │ openHAB Core :: Bundles :: Model Sitemap IDE
177 │ Active │  80 │ 2.5.0                   │ openHAB Core :: Bundles :: Model Sitemap Runtime
178 │ Active │  80 │ 2.5.0                   │ openHAB Core :: Bundles :: Model Thing
179 │ Active │  80 │ 2.5.0                   │ openHAB Core :: Bundles :: Model Thing IDE
180 │ Active │  80 │ 2.5.0                   │ openHAB Core :: Bundles :: Model Thing Runtime
181 │ Active │  80 │ 2.5.0                   │ openHAB Core :: Bundles :: Persistence
182 │ Active │  80 │ 2.5.0                   │ openHAB Core :: Bundles :: Scheduler Service
183 │ Active │  80 │ 2.5.0                   │ openHAB Core :: Bundles :: Semantics
184 │ Active │  80 │ 2.5.0                   │ openHAB Core :: Bundles :: JSON Storage
185 │ Active │  80 │ 2.5.0                   │ openHAB Core :: Bundles :: Thing
186 │ Active │  75 │ 2.5.0                   │ openHAB Core :: Bundles :: Thing XML
187 │ Active │  80 │ 2.5.0                   │ openHAB Core :: Bundles :: Transformation Service
188 │ Active │  80 │ 2.5.0                   │ openHAB Core :: Bundles :: UI
189 │ Active │  80 │ 2.5.0                   │ openHAB Core :: Bundles :: UI Icon Support
190 │ Active │  80 │ 2.5.0                   │ openHAB Core :: Bundles :: Voice
191 │ Active │  80 │ 2.5.7                   │ openHAB UI :: Bundles :: Dashboard UI
200 │ Active │  80 │ 1.4.0                   │ ThreeTen-Extra
201 │ Active │  80 │ 1.0.3                   │ Units of Measurement Common Library
202 │ Active │  80 │ 1.0.10                  │ Units of Measurement Implementation for Java SE
203 │ Active │  80 │ 2.5.3.202004011608      │ openHAB Add-ons :: Bundles :: Sony PlayStation Binding
204 │ Active │  80 │ 2.5.6.202006152137      │ openHAB Add-ons :: Bundles :: Amazon Echo Control Binding
205 │ Active │  80 │ 2.20                    │ Dagger
206 │ Active │  80 │ 1.1.2                   │ hivemq-mqtt-client
207 │ Active │  80 │ 5.5.0                   │ jna
208 │ Active │  80 │ 5.5.0                   │ jna-platform
209 │ Active │  80 │ 4.1.42.Final            │ Netty/Buffer
210 │ Active │  80 │ 4.1.42.Final            │ Netty/Codec
211 │ Active │  80 │ 4.1.42.Final            │ Netty/Codec/HTTP
212 │ Active │  80 │ 4.1.42.Final            │ Netty/Common
213 │ Active │  80 │ 4.1.42.Final            │ Netty/Handler
214 │ Active │  80 │ 4.1.42.Final            │ Netty/Resolver
215 │ Active │  80 │ 4.1.42.Final            │ Netty/Transport
216 │ Active │  80 │ 4.1.42.Final            │ Netty/Transport/Native/Epoll
217 │ Active │  80 │ 4.1.42.Final            │ Netty/Transport/Native/Unix/Common
218 │ Active │  80 │ 2.2.5                   │ rxjava
219 │ Active │  80 │ 1.0.0                   │ IO.Socket Engine Client
220 │ Active │  80 │ 1.0.0                   │ IO.Socket Socket Client
221 │ Active │  80 │ 1.9.2                   │ Jackson JSON processor
222 │ Active │  80 │ 1.9.2                   │ Data mapper for Jackson JSON processor
223 │ Active │  80 │ 20180813.0.0            │ JSON in Java
224 │ Active │  80 │ 1.6.0                   │ Commons Codec
225 │ Active │  80 │ 3.2.2                   │ Apache Commons Collections
226 │ Active │  80 │ 3.6.0                   │ Apache Commons Net
227 │ Active │  80 │ 4.2.3                   │ Apache HttpClient OSGi bundle
228 │ Active │  80 │ 4.2.3                   │ Apache HttpCore OSGi bundle
229 │ Active │  80 │ 3.1.0.7                 │ Apache ServiceMix :: Bundles :: commons-httpclient
230 │ Active │  80 │ 3.8.1.1                 │ Apache ServiceMix :: Bundles :: okhttp
231 │ Active │  80 │ 1.13.0.1                │ Apache ServiceMix :: Bundles :: okio
232 │ Active │  80 │ 2.1.2                   │ Java Concurrency Tools Core Library
233 │ Active │  80 │ 2.5.2                   │ JUPnP Library
234 │ Active │  80 │ 1.14.0                  │ openHAB Telegram Action
235 │ Active │  80 │ 2.5.7                   │ openHAB Add-ons :: Bundles :: Amazon Echo Control Binding
236 │ Active │  80 │ 2.5.7                   │ openHAB Add-ons :: Bundles :: Astro Binding
237 │ Active │  80 │ 2.5.7                   │ openHAB Add-ons :: Bundles :: AVM FRITZ! Binding
238 │ Active │  80 │ 2.5.7                   │ openHAB Add-ons :: Bundles :: Exec Binding
239 │ Active │  80 │ 1.14.0                  │ openHAB FritzboxTr064 Binding
240 │ Active │  80 │ 2.5.7                   │ openHAB Add-ons :: Bundles :: Homematic Binding
241 │ Active │  80 │ 2.5.7                   │ openHAB Add-ons :: Bundles :: HP Printer Binding
242 │ Active │  80 │ 1.14.0                  │ openHAB HTTP Binding
243 │ Active │  80 │ 1.14.0                  │ openHAB MQTT Binding
244 │ Active │  80 │ 2.5.7                   │ openHAB Add-ons :: Bundles :: MQTT Broker Binding
245 │ Active │  81 │ 2.5.7                   │ openHAB Add-ons :: Bundles :: MQTT Things and Channels
246 │ Active │  82 │ 2.5.7                   │ openHAB Add-ons :: Bundles :: MQTT HomeAssistant Convention
247 │ Active │  82 │ 2.5.7                   │ openHAB Add-ons :: Bundles :: MQTT Homie Convention
248 │ Active │  80 │ 2.5.7                   │ openHAB Add-ons :: Bundles :: Network Binding
249 │ Active │  80 │ 2.5.7                   │ openHAB Add-ons :: Bundles :: Systeminfo Binding
250 │ Active │  80 │ 2.5.7                   │ openHAB Add-ons :: Bundles :: Tankerkoenig Binding
251 │ Active │  80 │ 1.14.0                  │ openHAB Weather Binding
252 │ Active │  80 │ 2.5.0                   │ openHAB Core :: Bundles :: Automation
253 │ Active │  80 │ 2.5.0                   │ openHAB Core :: Bundles :: Automation Media Modules
254 │ Active │  80 │ 2.5.0                   │ openHAB Core :: Bundles :: Automation Script Modules
255 │ Active │  80 │ 2.5.0                   │ openHAB Core :: Bundles :: Automation Script RuleSupport
256 │ Active │  80 │ 2.5.0                   │ openHAB Core :: Bundles :: Automation REST API
257 │ Active │  80 │ 2.5.0                   │ openHAB Core :: Bundles :: 1.x Compatibility Layer
258 │ Active │  80 │ 2.5.0                   │ openHAB Core :: Bundles :: Configuration UPnP Discovery
259 │ Active │  80 │ 2.5.0                   │ openHAB Core :: Bundles :: MQTT Transport
260 │ Active │  80 │ 2.5.0                   │ openHAB Core :: Bundles :: UPnP Transport
261 │ Active │  80 │ 2.5.7                   │ openHAB Add-ons :: Bundles :: IO :: Java Sound Support
262 │ Active │  80 │ 2.5.7                   │ openHAB Add-ons :: Bundles :: IO :: openHAB Cloud Connector
263 │ Active │  80 │ 1.14.0                  │ openHAB MQTT Transport Bundle
264 │ Active │  80 │ 2.5.7                   │ openHAB Add-ons :: Bundles :: IO :: Web Audio Support
265 │ Active │  80 │ 1.14.0                  │ openHAB RRD4j Persistence Bundle
266 │ Active │  75 │ 2.5.7                   │ openHAB Add-ons :: Bundles :: Transformation Service :: JavaScript
267 │ Active │  75 │ 2.5.7                   │ openHAB Add-ons :: Bundles :: Transformation Service :: JSonPath
268 │ Active │  75 │ 2.5.7                   │ openHAB Add-ons :: Bundles :: Transformation Service :: Map
269 │ Active │  80 │ 2.5.7                   │ openHAB UI :: Bundles :: Basic UI
270 │ Active │  80 │ 2.5.7                   │ openHAB UI :: Bundles :: HABPanel UI
271 │ Active │  80 │ 2.5.7                   │ openHAB UI :: Bundles :: HomeBuilder UI
272 │ Active │  80 │ 2.5.7                   │ openHAB UI :: Bundles :: Icon Set :: Classic
273 │ Active │  80 │ 2.5.7                   │ openHAB UI :: Bundles :: Paper UI
274 │ Active │  80 │ 1.0.2                   │ reactive-streams
275 │ Active │  80 │ 1.14.0                  │ openHAB InfluxDB Persistence bundle
Und hier der aktuelle Trend von "Memory used" und "Swap Memory used". Die Messung hat am Sonntag begonnen. Bisher gab es noch keinen Absturz. Einige Spitzen kamen denke ich zustande, weil ich zwischenzeitlich an einigen rules rumgeschraubt habe. Unterm Strich ist aber irgendwie ein stetiger Aufwärtstrend zu erkennen.
Bild

Benutzeravatar
udo1toni
Beiträge: 15249
Registriert: 11. Apr 2018 18:05
Answers: 242
Wohnort: Darmstadt

Re: Memory Usage auswerten/grafisch darstellen

Beitrag von udo1toni »

Amazon Echo Control ist ein heißer Kandidat. Mach bitte mal ein Update auf 2.5.7.


Gesendet von iPad mit Tapatalk
openHAB4.3.3 stable in einem Debian-Container (bookworm) (Proxmox 8.3.5, LXC), mit openHABian eingerichtet

DavGre
Beiträge: 84
Registriert: 11. Mär 2019 15:47
Answers: 0

Re: Memory Usage auswerten/grafisch darstellen

Beitrag von DavGre »

udo1toni hat geschrieben: 31. Jul 2020 10:26 Amazon Echo Control ist ein heißer Kandidat. Mach bitte mal ein Update auf 2.5.7.


Gesendet von iPad mit Tapatalk
Okay. Wusste gar nicht, dass es schon 2.5.7 gibt. Dachte eigentlich, dass die Fehler mit 2.5.6 behoben sind.

Werde das Update dann mal direkt machen und die Sache weiter beobachten. Danke für den Hinweis!

DavGre
Beiträge: 84
Registriert: 11. Mär 2019 15:47
Answers: 0

Re: Memory Usage auswerten/grafisch darstellen

Beitrag von DavGre »

Kurzes Update von meiner Seite:
Ich bin bis dato noch nicht dazu gekommen, irgendwelche Änderungen oder weiteren Versuche durchzuführen.
Die Memory Auslastung hat sich jedoch überraschenderweise stabilisiert und überschreitet die 75 % seit fast einer Woche nicht. Das gesamte System ist auch so lange Online wie lange nicht mehr (2 Wochen).

Ich werde es jetzt erst mal dabei belassen und mich ggf. wieder melden, wenn es doch wieder zu Abstürzen kommen sollte.

Antworten