Since I upgraded to OH3 I get crashes. After some time I have this error in console:
openhab_1 | Launching the openHAB runtime...
openhab_1 | Exception in thread "Timer-6" java.lang.OutOfMemoryError: Java heap space
openhab_1 | at java.base/java.util.Arrays.copyOfRange(Arrays.java:4030)
openhab_1 | at java.base/java.lang.StringLatin1.newString(StringLatin1.java:715)
openhab_1 | at java.base/java.lang.StringBuffer.toString(StringBuffer.java:715)
openhab_1 | at java.base/java.io.StringWriter.toString(StringWriter.java:218)
openhab_1 | at com.google.gson.Gson.toJson(Gson.java:604)
openhab_1 | at com.google.gson.Gson.toJson(Gson.java:583)
openhab_1 | at org.openhab.core.storage.json.internal.JsonStorage.flush(JsonStorage.java:294)
openhab_1 | at org.openhab.core.storage.json.internal.JsonStorage$CommitTimerTask.run(JsonStorage.java:328)
openhab_1 | at java.base/java.util.TimerThread.mainLoop(Timer.java:556)
openhab_1 | at java.base/java.util.TimerThread.run(Timer.java:506)
openhab_1 | Exception in thread "qtp9285450-81" java.lang.OutOfMemoryError: Java heap space
openhab_1 | Exception in thread "SocketListener(172-20-0-1.local.)" java.lang.OutOfMemoryError: Java heap space
openhab_1 | Exception in thread "SocketListener(172-24-0-1.local.)" java.lang.OutOfMemoryError: Java heap space
openhab_1 | Exception in thread "JmDNS(172-29-0-1.local.).Timer" java.lang.OutOfMemoryError: Java heap space
openhab_1 | Exception in thread "SocketListener(172-29-0-1.local.)" java.lang.IllegalStateException: Timer already cancelled.
openhab_1 | Exception in thread "SocketListener(172-27-0-1.local.)" Exception in thread "items-3" at java.base/java.util.Timer.sched(Timer.java:398)
openhab_1 | at java.base/java.util.Timer.schedule(Timer.java:194)
openhab_1 | at javax.jmdns.impl.DNSTaskStarter$DNSTaskStarterImpl$StarterTimer.schedule(DNSTaskStarter.java:219)
openhab_1 | Exception in thread "qtp9285450-266" Exception in thread "OH-discovery-1460" Exception in thread "JmDNS(172-21-0-1.local.).State.Timer" Exception in thread "JmDNS(172
-29-0-1.local.).State.Timer" Exception in thread "JmDNS(172-20-0-1.local.).Timer" at javax.jmdns.impl.tasks.Responder.start(Responder.java:98)
openhab_1 | at javax.jmdns.impl.DNSTaskStarter$DNSTaskStarterImpl.startResponder(DNSTaskStarter.java:395)
openhab_1 | at javax.jmdns.impl.JmDNSImpl.startResponder(JmDNSImpl.java:1770)
openhab_1 | Exception in thread "OH-modbusManagerPollerThreadPool-143" Exception in thread "SocketListener(192-168-178-33.local.)" Exception in thread "JmDNS(172-17-0-1.local.).S
tate.Timer" Exception in thread "JmDNS(172-24-0-1.local.).State.Timer" Exception in thread "JmDNS(172-20-0-1.local.).State.Timer" Exception in thread "SocketListener(172-17-0-1.lo
cal.)" Exception in thread "SocketListener(2a02-6d40-264d-5c01-90e8-4584-8f15-477b-eth0.local.)" at javax.jmdns.impl.JmDNSImpl.handleQuery(JmDNSImpl.java:1560)
openhab_1 | at javax.jmdns.impl.SocketListener.run(SocketListener.java:75)
openhab_1 | Exception in thread "JmDNS(172-27-0-1.local.).State.Timer" java.lang.OutOfMemoryError: Java heap space
openhab_1 | java.lang.OutOfMemoryError: Java heap space
openhab_1 | java.lang.OutOfMemoryError: Java heap space
openhab_1 | java.lang.OutOfMemoryError: Java heap space
openhab_1 | java.lang.OutOfMemoryError: Java heap space
openhab_1 | java.lang.OutOfMemoryError: Java heap space
openhab_1 | java.lang.OutOfMemoryError: Java heap space
openhab_1 | java.lang.OutOfMemoryError: Java heap space
openhab_1 | java.lang.OutOfMemoryError: Java heap space
openhab_1 | java.lang.OutOfMemoryError: Java heap space
openhab_1 | java.lang.OutOfMemoryError: Java heap space
openhab_1 | java.lang.OutOfMemoryError: Java heap space
openhab_1 | java.lang.OutOfMemoryError: Java heap space
openhab_1 | java.lang.OutOfMemoryError: Java heap space
openhab_1 | java.lang.OutOfMemoryError: Java heap space
I use docker-compose on a raspi 4 with 4GB RAM. It would not be that bad if it just exited, but it just becomes unresponsive and does not exit so docker canât restart it.
I use Shelly, MQTT and Modbus binding. After a crash all history data is gone and the shellies are also deleted