JAVA HEAP SPACE but yesterday all was fine

I am running OH on a RPI 3. This RPI only runs OH. My system never crash.
I am now using OH since many years. In the past, OH was even running on a RPI 2.
The only crashes I got during these years were when my SD-card was dead.
All that to say that a RPI 3 is sufficient to run a reasonable OH setup.

Great! Thanks for your replay!

I have modified the configuration file of the sonos binding.
Is there anything else you think of that could cause the system to crash?
Very annoying? Is there anything else I can check? Carafe console to see what is asking a lot from the system?

tips are always welcome! :hugs:

With a RPI, when suddenly you got strange behaviour, it could be an alert that your SD-Card is maybe dying.
Just my 2 cents.

1 Like

hi,

I am in the process of installing my new installation. Hopefully the problems will be solved. Should the problems reappear I will get back in touch here.

My card is a micro from SanDisk 32GB class 3

thank you!

org.apache.cxf.interceptor.Fault: unable to create native thread: possibly out of memory or process/resource limits reached

at org.apache.cxf.service.invoker.AbstractInvoker.createFault(AbstractInvoker.java:162) ~[bundleFile:3.4.5]

at org.apache.cxf.service.invoker.AbstractInvoker.invoke(AbstractInvoker.java:128) ~[bundleFile:3.4.5]

at org.apache.cxf.jaxrs.JAXRSInvoker.invoke(JAXRSInvoker.java:201) ~[bundleFile:3.4.5]

at org.apache.cxf.jaxrs.JAXRSInvoker.invoke(JAXRSInvoker.java:104) ~[bundleFile:3.4.5]

at org.apache.cxf.interceptor.ServiceInvokerInterceptor$1.run(ServiceInvokerInterceptor.java:59) ~[bundleFile:3.4.5]

at org.apache.cxf.interceptor.ServiceInvokerInterceptor.handleMessage(ServiceInvokerInterceptor.java:96) ~[bundleFile:3.4.5]

at org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:308) ~[bundleFile:3.4.5]

at org.apache.cxf.transport.ChainInitiationObserver.onMessage(ChainInitiationObserver.java:121) ~[bundleFile:3.4.5]

at org.apache.cxf.transport.http.AbstractHTTPDestination.invoke(AbstractHTTPDestination.java:265) ~[bundleFile:3.4.5]

at org.apache.cxf.transport.servlet.ServletController.invokeDestination(ServletController.java:234) ~[bundleFile:3.4.5]

at org.apache.cxf.transport.servlet.ServletController.invoke(ServletController.java:208) ~[bundleFile:3.4.5]

at org.apache.cxf.transport.servlet.ServletController.invoke(ServletController.java:160) ~[bundleFile:3.4.5]

at org.apache.cxf.transport.servlet.CXFNonSpringServlet.invoke(CXFNonSpringServlet.java:225) ~[bundleFile:3.4.5]

at org.apache.cxf.transport.servlet.AbstractHTTPServlet.handleRequest(AbstractHTTPServlet.java:298) ~[bundleFile:3.4.5]

at org.apache.cxf.transport.servlet.AbstractHTTPServlet.doGet(AbstractHTTPServlet.java:222) ~[bundleFile:3.4.5]

at javax.servlet.http.HttpServlet.service(HttpServlet.java:687) ~[bundleFile:3.1.0]

at org.apache.cxf.transport.servlet.AbstractHTTPServlet.service(AbstractHTTPServlet.java:273) ~[bundleFile:3.4.5]

at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:799) ~[bundleFile:9.4.46.v20220331]

at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:550) ~[bundleFile:9.4.46.v20220331]

at org.ops4j.pax.web.service.jetty.internal.HttpServiceServletHandler.doHandle(HttpServiceServletHandler.java:74) ~[bundleFile:?]

at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:143) ~[bundleFile:9.4.46.v20220331]

at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:600) ~[bundleFile:9.4.46.v20220331]

at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:127) ~[bundleFile:9.4.46.v20220331]

at org.eclipse.jetty.server.handler.ScopedHandler.nextHandle(ScopedHandler.java:235) ~[bundleFile:9.4.46.v20220331]

at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:1624) ~[bundleFile:9.4.46.v20220331]

at org.eclipse.jetty.server.handler.ScopedHandler.nextHandle(ScopedHandler.java:233) ~[bundleFile:9.4.46.v20220331]

at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1440) ~[bundleFile:9.4.46.v20220331]

at org.ops4j.pax.web.service.jetty.internal.HttpServiceContext.doHandle(HttpServiceContext.java:294) ~[bundleFile:?]

at org.eclipse.jetty.server.handler.ScopedHandler.nextScope(ScopedHandler.java:188) ~[bundleFile:9.4.46.v20220331]

at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:501) ~[bundleFile:9.4.46.v20220331]

at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:1594) ~[bundleFile:9.4.46.v20220331]

at org.eclipse.jetty.server.handler.ScopedHandler.nextScope(ScopedHandler.java:186) ~[bundleFile:9.4.46.v20220331]

at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1355) ~[bundleFile:9.4.46.v20220331]

at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:141) ~[bundleFile:9.4.46.v20220331]

at org.ops4j.pax.web.service.jetty.internal.JettyServerHandlerCollection.handle(JettyServerHandlerCollection.java:90) ~[bundleFile:?]

at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:127) ~[bundleFile:9.4.46.v20220331]

at org.eclipse.jetty.server.Server.handle(Server.java:516) ~[bundleFile:9.4.46.v20220331]

at org.eclipse.jetty.server.HttpChannel.lambda$handle$1(HttpChannel.java:487) ~[bundleFile:9.4.46.v20220331]

at org.eclipse.jetty.server.HttpChannel.dispatch(HttpChannel.java:732) [bundleFile:9.4.46.v20220331]

at org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:479) [bundleFile:9.4.46.v20220331]

at org.eclipse.jetty.server.HttpConnection.onFillable(HttpConnection.java:277) [bundleFile:9.4.46.v20220331]

at org.eclipse.jetty.io.AbstractConnection$ReadCallback.succeeded(AbstractConnection.java:311) [bundleFile:9.4.46.v20220331]

at org.eclipse.jetty.io.FillInterest.fillable(FillInterest.java:105) [bundleFile:9.4.46.v20220331]

at org.eclipse.jetty.io.ChannelEndPoint$1.run(ChannelEndPoint.java:104) [bundleFile:9.4.46.v20220331]

at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.runTask(EatWhatYouKill.java:338) [bundleFile:9.4.46.v20220331]

at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.doProduce(EatWhatYouKill.java:315) [bundleFile:9.4.46.v20220331]

at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.tryProduce(EatWhatYouKill.java:173) [bundleFile:9.4.46.v20220331]

at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.run(EatWhatYouKill.java:131) [bundleFile:9.4.46.v20220331]

at org.eclipse.jetty.util.thread.ReservedThreadExecutor$ReservedThread.run(ReservedThreadExecutor.java:409) [bundleFile:9.4.46.v20220331]

at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:883) [bundleFile:9.4.46.v20220331]

at org.eclipse.jetty.util.thread.QueuedThreadPool$Runner.run(QueuedThreadPool.java:1034) [bundleFile:9.4.46.v20220331]

at java.lang.Thread.run(Thread.java:829) [?:?]

Caused by: java.lang.OutOfMemoryError: unable to create native thread: possibly out of memory or process/resource limits reached

at java.lang.Thread.start0(Native Method) ~[?:?]

at java.lang.Thread.start(Thread.java:798) ~[?:?]

at org.openhab.core.io.rest.JSONResponse.createResponse(JSONResponse.java:180) ~[?:?]

at org.openhab.core.io.rest.JSONResponse.createResponse(JSONResponse.java:87) ~[?:?]

at org.openhab.core.io.rest.core.internal.persistence.PersistenceResource.getItemHistoryDTO(PersistenceResource.java:235) ~[?:?]

at org.openhab.core.io.rest.core.internal.persistence.PersistenceResource.httpGetPersistenceItemData(PersistenceResource.java:175) ~[?:?]

at jdk.internal.reflect.GeneratedMethodAccessor323.invoke(Unknown Source) ~[?:?]

at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:?]

at java.lang.reflect.Method.invoke(Method.java:566) ~[?:?]

at org.apache.cxf.service.invoker.AbstractInvoker.performInvocation(AbstractInvoker.java:179) ~[bundleFile:3.4.5]

at org.apache.cxf.service.invoker.AbstractInvoker.invoke(AbstractInvoker.java:96) ~[bundleFile:3.4.5]


 50 more

2022-08-18 17:29:02.570 [WARN ] [e.internal.SseItemStatesEventBuilder] - Attempting to send a state update of an item which doesn’t exist: undefined

2022-08-18 17:29:02.591 [WARN ] [org.eclipse.jetty.server.HttpChannel] - /rest/persistence/items/Lichtsterkte_zonnecollectoren

org.apache.cxf.interceptor.Fault: unable to create native thread: possibly out of memory or process/resource limits reached

at org.apache.cxf.service.invoker.AbstractInvoker.createFault(AbstractInvoker.java:162) ~[?:?]

at org.apache.cxf.service.invoker.AbstractInvoker.invoke(AbstractInvoker.java:128) ~[?:?]

at org.apache.cxf.jaxrs.JAXRSInvoker.invoke(JAXRSInvoker.java:201) ~[?:?]

at org.apache.cxf.jaxrs.JAXRSInvoker.invoke(JAXRSInvoker.java:104) ~[?:?]

at org.apache.cxf.interceptor.ServiceInvokerInterceptor$1.run(ServiceInvokerInterceptor.java:59) ~[?:?]

at org.apache.cxf.interceptor.ServiceInvokerInterceptor.handleMessage(ServiceInvokerInterceptor.java:96) ~[?:?]

at org.apache.cxf.phase.PhaseInterceptorChain.doIntercept(PhaseInterceptorChain.java:308) ~[?:?]

at org.apache.cxf.transport.ChainInitiationObserver.onMessage(ChainInitiationObserver.java:121) ~[?:?]

at org.apache.cxf.transport.http.AbstractHTTPDestination.invoke(AbstractHTTPDestination.java:265) ~[?:?]

at org.apache.cxf.transport.servlet.ServletController.invokeDestination(ServletController.java:234) ~[?:?]

at org.apache.cxf.transport.servlet.ServletController.invoke(ServletController.java:208) ~[?:?]

at org.apache.cxf.transport.servlet.ServletController.invoke(ServletController.java:160) ~[?:?]

at org.apache.cxf.transport.servlet.CXFNonSpringServlet.invoke(CXFNonSpringServlet.java:225) ~[?:?]

at org.apache.cxf.transport.servlet.AbstractHTTPServlet.handleRequest(AbstractHTTPServlet.java:298) ~[?:?]

at org.apache.cxf.transport.servlet.AbstractHTTPServlet.doGet(AbstractHTTPServlet.java:222) ~[?:?]

at javax.servlet.http.HttpServlet.service(HttpServlet.java:687) ~[bundleFile:3.1.0]

at org.apache.cxf.transport.servlet.AbstractHTTPServlet.service(AbstractHTTPServlet.java:273) ~[?:?]

at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:799) ~[?:?]

at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:550) ~[?:?]

at org.ops4j.pax.web.service.jetty.internal.HttpServiceServletHandler.doHandle(HttpServiceServletHandler.java:74) ~[?:?]

at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:143) ~[bundleFile:9.4.46.v20220331]

at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:600) ~[?:?]

at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:127) ~[bundleFile:9.4.46.v20220331]

at org.eclipse.jetty.server.handler.ScopedHandler.nextHandle(ScopedHandler.java:235) ~[bundleFile:9.4.46.v20220331]

at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:1624) ~[bundleFile:9.4.46.v20220331]

at org.eclipse.jetty.server.handler.ScopedHandler.nextHandle(ScopedHandler.java:233) ~[bundleFile:9.4.46.v20220331]

at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1440) ~[bundleFile:9.4.46.v20220331]

at org.ops4j.pax.web.service.jetty.internal.HttpServiceContext.doHandle(HttpServiceContext.java:294) ~[?:?]

at org.eclipse.jetty.server.handler.ScopedHandler.nextScope(ScopedHandler.java:188) ~[bundleFile:9.4.46.v20220331]

at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:501) ~[?:?]

at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:1594) ~[bundleFile:9.4.46.v20220331]

at org.eclipse.jetty.server.handler.ScopedHandler.nextScope(ScopedHandler.java:186) ~[bundleFile:9.4.46.v20220331]

at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1355) ~[bundleFile:9.4.46.v20220331]

at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:141) ~[bundleFile:9.4.46.v20220331]

at org.ops4j.pax.web.service.jetty.internal.JettyServerHandlerCollection.handle(JettyServerHandlerCollection.java:90) ~[?:?]

at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:127) ~[bundleFile:9.4.46.v20220331]

at org.eclipse.jetty.server.Server.handle(Server.java:516) ~[bundleFile:9.4.46.v20220331]

at org.eclipse.jetty.server.HttpChannel.lambda$handle$1(HttpChannel.java:487) ~[bundleFile:9.4.46.v20220331]

at org.eclipse.jetty.server.HttpChannel.dispatch(HttpChannel.java:732) ~[bundleFile:9.4.46.v20220331]

at org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:479) [bundleFile:9.4.46.v20220331]

at org.eclipse.jetty.server.HttpConnection.onFillable(HttpConnection.java:277) [bundleFile:9.4.46.v20220331]

at org.eclipse.jetty.io.AbstractConnection$ReadCallback.succeeded(AbstractConnection.java:311) [bundleFile:9.4.46.v20220331]

at org.eclipse.jetty.io.FillInterest.fillable(FillInterest.java:105) [bundleFile:9.4.46.v20220331]

at org.eclipse.jetty.io.ChannelEndPoint$1.run(ChannelEndPoint.java:104) [bundleFile:9.4.46.v20220331]

at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.runTask(EatWhatYouKill.java:338) [bundleFile:9.4.46.v20220331]

at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.doProduce(EatWhatYouKill.java:315) [bundleFile:9.4.46.v20220331]

at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.tryProduce(EatWhatYouKill.java:173) [bundleFile:9.4.46.v20220331]

at org.eclipse.jetty.util.thread.strategy.EatWhatYouKill.run(EatWhatYouKill.java:131) [bundleFile:9.4.46.v20220331]

at org.eclipse.jetty.util.thread.ReservedThreadExecutor$ReservedThread.run(ReservedThreadExecutor.java:409) [bundleFile:9.4.46.v20220331]

at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:883) [bundleFile:9.4.46.v20220331]

at org.eclipse.jetty.util.thread.QueuedThreadPool$Runner.run(QueuedThreadPool.java:1034) [bundleFile:9.4.46.v20220331]

at java.lang.Thread.run(Thread.java:829) [?:?]

Caused by: java.lang.OutOfMemoryError: unable to create native thread: possibly out of memory or process/resource limits reached

at java.lang.Thread.start0(Native Method) ~[?:?]

at java.lang.Thread.start(Thread.java:798) ~[?:?]

at org.openhab.core.io.rest.JSONResponse.createResponse(JSONResponse.java:180) ~[?:?]

at org.openhab.core.io.rest.JSONResponse.createResponse(JSONResponse.java:87) ~[?:?]

at org.openhab.core.io.rest.core.internal.persistence.PersistenceResource.getItemHistoryDTO(PersistenceResource.java:235) ~[?:?]

at org.openhab.core.io.rest.core.internal.persistence.PersistenceResource.httpGetPersistenceItemData(PersistenceResource.java:175) ~[?:?]

at jdk.internal.reflect.GeneratedMethodAccessor323.invoke(Unknown Source) ~[?:?]

at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:?]

at java.lang.reflect.Method.invoke(Method.java:566) ~[?:?]

at org.apache.cxf.service.invoker.AbstractInvoker.performInvocation(AbstractInvoker.java:179) ~[?:?]

at org.apache.cxf.service.invoker.AbstractInvoker.invoke(AbstractInvoker.java:96) ~[?:?]


 50 more

Hello,
My open tab 3.3 system crashed again after 7 days.
I have started a completely new installation with a new sd card.

Are there any people who can help?
below you can see all the logs.

Log openhab crash.txt (134.9 KB)

The logs will not be useful other then to tell you have an out of memory error.

Setup the system info binding to graph the used heap percentage. Does it grow higher over time or does it grow and then go back to the same value each time the garbage is collected?

If you don’t change anything you can only expect to get the same result, so you need to disable bindings and rules until you find the cause. The graph can speed up this process if you can see it growing you then don’t need to wait for it to run out fully to know there is an issue.

1 Like

What you pasted clearly indicates you have somewhere a thread leak. Thread leak is a situation when you keep creating or maintaining growing set of threads instead of having a thread poll with reusable threads in it.

Today, I had the following system degradation on my OH3.4:

  • Over half an hour, all Items that come from the http binding expired to UNDEF
  • Then the connection to the MQTT server (hosted on the same RPI) broke. There were one or two re-connection attempts. MQTT serer log did not report anything out of the ordinary.
  • Then a Java out of heap error occured.
  • The OH was unresponsive for a few hours (also no log entries or Item updates) and finally came back just to repeat the process.

What I also observed was that in this state the RPI used about 1.8GB of RAM as opposed to 1GB sharp when it operates nominally. After a few reboots it now appears back to normal with 1GB ram usage.
There were no other errors in the log, neither OH nor any other system logs. Maybe there would be more with a different log level.
Given the temporal order of appearing failures and the elevated ram usage, it appears that the http binding started leaking memory.
In my opinion, this is related to the http binding as those Items were failing first. I should mention, that I use about 100+ http items.

My OH (3.4.3) is crashing after 1.5/2 days

It’s running on Docker with plenty enough RAM, but now after restarting it again it already consumes 1,3GB of RAM.
I’m thinking about migrating to an Pi4 again, but will this solve my problems of the memory leaks are coming from a binding or a DSL rule


Exception: java.lang.OutOfMemoryError thrown from the UncaughtExceptionHandler in thread "items-queue"
Exception: java.lang.OutOfMemoryError thrown from the UncaughtExceptionHandler in thread "fileinstall-/openhab/userdata/etc"
Exception: java.lang.OutOfMemoryError thrown from the UncaughtExceptionHandler in thread ":CoapEndpoint-UDP-224.0.1.187:5683#1"
Exception in thread "OH-thingHandler-8" java.lang.OutOfMemoryError: Java heap space
Exception in thread "sshd-SshServer[73086fac](port=8101)-timer-thread-1" java.lang.OutOfMemoryError: Java heap space
Exception in thread "OH-OSGiEventManager" java.lang.OutOfMemoryError: Java heap space
Exception in thread "Scanner-0" java.lang.OutOfMemoryError: Java heap space: failed reallocation of scalar replaced objects
Exception in thread "OH-items-1" Exception in thread "Thread-149" java.lang.OutOfMemoryError: Java heap space
java.lang.OutOfMemoryError: Java heap space
Exception in thread "HttpClient@75628fa9-scheduler-1" java.lang.OutOfMemoryError: Java heap space
Exception in thread "OH-thingHandler-9" Exception in thread "qtp606419170-12756" java.lang.OutOfMemoryError: Java heap space
java.lang.OutOfMemoryError: Java heap space
Exception in thread "encryption-3-thread-1" java.lang.OutOfMemoryError: Java heap space
Exception in thread "Active Thread: Equinox Container: 85cc2202-3fef-4a0c-b024-8ca6db8d81d4" java.lang.OutOfMemoryError: Java heap space
Exception in thread "sshd-SshServer[73086fac](port=8101)-timer-thread-2" java.lang.OutOfMemoryError: Java heap space
Exception in thread "OH-discovery-1255" java.lang.OutOfMemoryError: Java heap space
Exception in thread "SocketListener(unifi.local.)" java.lang.OutOfMemoryError: Java heap space
Exception: java.lang.OutOfMemoryError thrown from the UncaughtExceptionHandler in thread "qtp606419170-12822"
Exception: java.lang.OutOfMemoryError thrown from the UncaughtExceptionHandler in thread "OH-thingHandler-12"
Exception in thread "Thread-148" Exception in thread "sender-dbw5nwoupn PING" Exception in thread "JmDNS(192-168-100-1.local.).Timer" Exception in thread "ServletModel-20-406" Exception in thread "Thread-150" java.lang.OutOfMemoryError: Java heap space
java.lang.OutOfMemoryError: Java heap space
java.lang.OutOfMemoryError: Java heap space
java.lang.OutOfMemoryError: Java heap space
java.lang.OutOfMemoryError: Java heap space
Exception in thread "OH-discovery-1254" java.lang.OutOfMemoryError: Java heap space
Exception in thread "sshd-SshServer[73086fac](port=8101)-timer-thread-3" java.lang.OutOfMemoryError: Java heap space
Exception in thread "Active Thread: Equinox Container: 85cc2202-3fef-4a0c-b024-8ca6db8d81d4" java.lang.OutOfMemoryError: Java heap space
org.ops4j.pax.logging.pax-logging-api [log4j2] ERROR : An exception occurred processing Appender OSGI
Exception in thread "OH-discovery-1256" java.lang.OutOfMemoryError: Java heap space
Exception in thread "OH-discovery-1251" java.lang.OutOfMemoryError: Java heap space
Exception in thread "Active Thread: Equinox Container: 85cc2202-3fef-4a0c-b024-8ca6db8d81d4" Exception in thread "OH-discovery-1258" java.lang.OutOfMemoryError: Java heap space
java.lang.OutOfMemoryError: Java heap space
Exception in thread "JmDNS(unifi.local.).Timer" java.lang.OutOfMemoryError: Java heap space
Exception in thread "OH-thingManager-4573" java.lang.OutOfMemoryError: Java heap space
Exception: java.lang.OutOfMemoryError thrown from the UncaughtExceptionHandler in thread "Thread-834"
Exception: java.lang.OutOfMemoryError thrown from the UncaughtExceptionHandler in thread "OH-thingHandler-13"
Exception in thread "commons-pool-evictor-thread" Exception in thread "sshd-SshServer[73086fac](port=8101)-timer-thread-4" java.lang.OutOfMemoryError: Java heap space
Exception: java.lang.OutOfMemoryError thrown from the UncaughtExceptionHandler in thread "HttpClient@2999fe4-489"
Exception: java.lang.OutOfMemoryError thrown from the UncaughtExceptionHandler in thread "ServletModel-20-405"
Exception: java.lang.OutOfMemoryError thrown from the UncaughtExceptionHandler in thread "ServletModel-20-409"
Exception: java.lang.OutOfMemoryError thrown from the UncaughtExceptionHandler in thread "sender-zajnsqqh1b PING"
Exception: java.lang.OutOfMemoryError thrown from the UncaughtExceptionHandler in thread "Thread-151"
java.lang.OutOfMemoryError: Java heap space
Exception in thread "OH-discovery-1269" java.lang.OutOfMemoryError: Java heap space
Exception in thread "OH-scheduler-316" java.lang.OutOfMemoryError: Java heap space
Exception in thread "OH-thingHandler-14" java.lang.OutOfMemoryError: Java heap space
Exception in thread "OH-thingHandler-10" java.lang.OutOfMemoryError: Java heap space
Exception in thread "OH-httpClient-common-424" java.lang.OutOfMemoryError: Java heap space
Exception in thread "HttpClient@2999fe4-487" java.lang.OutOfMemoryError: Java heap space
Exception in thread "pool-20-thread-1" java.lang.OutOfMemoryError: Java heap space
Exception in thread "commons-pool-evictor-thread" java.lang.OutOfMemoryError: Java heap space
Exception in thread "JmDNS(172-25-0-1.local.).Timer" java.lang.OutOfMemoryError: Java heap space
Exception in thread "OH-thingHandler-7" java.lang.OutOfMemoryError: Java heap space
Exception in thread "HttpClient@637bc1d6-scheduler-1" java.lang.OutOfMemoryError: Java heap space
Exception in thread "OkHttp ConnectionPool" java.lang.OutOfMemoryError: Java heap space
Exception in thread "HttpClient@2999fe4-490" java.lang.OutOfMemoryError: Java heap space
Exception in thread "ServletModel-20-12934" java.lang.OutOfMemoryError: Java heap space
Exception in thread "JmDNS(172-18-0-1.local.).Timer" java.lang.OutOfMemoryError: Java heap space
Exception in thread "OH-thingHandler-17" java.lang.OutOfMemoryError: Java heap space
SLF4J: Failed toString() invocation on an object of type [io.netty.channel.socket.nio.NioSocketChannel]
Reported exception:
java.lang.OutOfMemoryError: Java heap space
Exception in thread "OH-thingHandler-11" java.lang.OutOfMemoryError: Java heap space
Exception in thread "Timer-12" java.lang.OutOfMemoryError: Java heap space
Exception: java.lang.OutOfMemoryError thrown from the UncaughtExceptionHandler in thread "OH-thingHandler-20"
Exception in thread "OH-thingHandler-19" java.lang.OutOfMemoryError: Java heap space
Exception in thread "OH-thingHandler-15" java.lang.OutOfMemoryError: Java heap space
Exception in thread "OH-discovery-1293" java.lang.OutOfMemoryError: Java heap space
Exception in thread "OH-discovery-1295" java.lang.OutOfMemoryError: Java heap space
Exception: java.lang.OutOfMemoryError thrown from the UncaughtExceptionHandler in thread "OH-thingHandler-23"
Exception in thread "OH-scheduler-324" java.lang.OutOfMemoryError: Java heap space
Exception in thread "OH-common-543" java.lang.OutOfMemoryError: Java heap space
Exception in thread "OH-discovery-1298" java.lang.OutOfMemoryError: Java heap space
Exception: java.lang.OutOfMemoryError thrown from the UncaughtExceptionHandler in thread "OH-thingHandler-22"
Exception: java.lang.OutOfMemoryError thrown from the UncaughtExceptionHandler in thread "OH-common-548"
Exception in thread "OH-thingHandler-27" java.lang.OutOfMemoryError: Java heap space
Exception in thread "OH-discovery-1297" java.lang.OutOfMemoryError: Java heap space
Exception in thread "OH-common-545" java.lang.OutOfMemoryError: Java heap space
Exception in thread "ServletModel-20-407" java.lang.OutOfMemoryError: Java heap space
Exception in thread "OH-thingHandler-30" java.lang.OutOfMemoryError: Java heap space
Exception in thread "OH-thingHandler-26" java.lang.OutOfMemoryError: Java heap space
Exception in thread "OH-thingHandler-25" java.lang.OutOfMemoryError: Java heap space

Hi,
many users expertise the same issue since a long period of time and over several releases of OH but I still do not have clear how to fix it, the only way I found is backup + new install.

After I disable definitelly Zram i never had the problem but should be a coincidence.