OH2 crash after 3-4 days running

Hi,
after upgrade from version 2.2.1 to version 2.2.2 i got this issue.
After a 3/4 days running I got in the logs this kind of warning, tipically 30/35 minutes before crash:

[WARN ] [ore.internal.events.OSGiEventManager] - Dispatching event to subscriber 'org.openhab.core.events.internal.EventBridge@21dd81f2' takes more than 5000ms.
[WARN ] [ore.internal.events.OSGiEventManager] - Dispatching event to subscriber 'org.eclipse.smarthome.core.internal.items.ItemUpdater@33e76645' takes more than 5000ms.
[WARN ] [ore.internal.events.OSGiEventManager] - Dispatching event to subscriber 'org.eclipse.smarthome.io.monitor.internal.EventLogger@3aa9609' takes more than 5000ms.
[WARN ] [ore.internal.events.OSGiEventManager] - Dispatching event to subscriber 'org.eclipse.smarthome.io.monitor.internal.EventLogger@3aa9609' takes more than 5000ms.


this is only some examples. Passing time, the numeber of this warning became more frequent, then after 30/35 openhab crash and I have some Java exeption:

2017-10-09 17:37:49.652 [WARN ] [e.jetty.util.thread.QueuedThreadPool] - 
java.lang.OutOfMemoryError: Java heap space
2017-10-09 17:38:18.433 [WARN ] [e.jetty.util.thread.QueuedThreadPool] - Unexpected thread death: org.eclipse.jetty.util.thread.QueuedThreadPool$2@3670562a in qtp1792984541{STARTED,2<=50<=50,i=17,q=1}
2017-10-09 17:37:49.674 [ERROR] [org.quartz.core.JobRunShell         ] - Job event-reloader.casaOH threw an unhandled Exception: 
java.lang.OutOfMemoryError: Java heap space
2017-10-09 18:31:24.622 [ERROR] [org.quartz.core.ErrorLogger         ] - Job (event-reloader.casaOH threw an exception.
org.quartz.SchedulerException: Job threw an unhandled exception.
	at org.quartz.core.JobRunShell.run(JobRunShell.java:213) [104:org.eclipse.smarthome.core.scheduler:0.9.0.201709260841]
	at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:573) [104:org.eclipse.smarthome.core.scheduler:0.9.0.201709260841]
Caused by: java.lang.OutOfMemoryError: Java heap space
2017-10-09 18:31:24.627 [WARN ] [e.jetty.util.thread.QueuedThreadPool] - 
java.lang.OutOfMemoryError: Java heap space: failed reallocation of scalar replaced objects
2017-10-09 18:31:24.628 [WARN ] [e.jetty.util.thread.QueuedThreadPool] - Unexpected thread death: org.eclipse.jetty.util.thread.QueuedThreadPool$2@3670562a in qtp1792984541{STARTED,2<=50<=50,i=0,q=31}
2017-10-09 17:37:49.662 [WARN ] [e.jetty.util.thread.QueuedThreadPool] - 
java.lang.OutOfMemoryError: Java heap space
2017-10-09 18:31:24.629 [WARN ] [e.jetty.util.thread.QueuedThreadPool] - Unexpected thread death: org.eclipse.jetty.util.thread.QueuedThreadPool$2@3670562a in qtp1792984541{STARTED,2<=50<=50,i=0,q=31}
2017-10-09 18:31:24.621 [WARN ] [eclipse.jetty.servlet.ServletHandler] - Error for /rest/sitemaps/events/subscribe
java.lang.OutOfMemoryError: Java heap space
2017-10-09 17:38:23.722 [WARN ] [ore.internal.events.OSGiEventManager] - Dispatching event to subscriber 'org.eclipse.smarthome.core.internal.items.ItemUpdater@33e76645' takes more than 5000ms.
2017-10-09 18:31:24.650 [INFO ] [me.model.script.Router.Speed.Execute] - Check Speed Execute on Timer. ROUTER_CHECK_ACTIVE=ON
2017-10-09 19:06:56.164 [WARN ] [eclipse.jetty.servlet.ServletHandler] - Error for /rest/sitemaps/events/subscribe
java.lang.OutOfMemoryError: Java heap space
2017-10-09 19:06:56.165 [WARN ] [org.eclipse.jetty.server.HttpChannel] - //192.168.1.80:8080/rest/sitemaps/events/subscribe
java.lang.OutOfMemoryError: Java heap space
2017-10-09 19:06:56.166 [WARN ] [e.jetty.util.thread.QueuedThreadPool] - 
java.lang.OutOfMemoryError: Java heap space
2017-10-09 19:06:56.166 [WARN ] [e.jetty.util.thread.QueuedThreadPool] - Unexpected thread death: org.eclipse.jetty.util.thread.QueuedThreadPool$2@3670562a in qtp1792984541{STARTED,2<=50<=50,i=0,q=21}
2017-10-09 19:06:56.179 [WARN ] [eclipse.jetty.servlet.ServletHandler] - 
javax.servlet.ServletException: org.glassfish.jersey.server.ContainerException: java.lang.OutOfMemoryError: Java heap space
	at org.glassfish.jersey.servlet.WebComponent.serviceImpl(WebComponent.java:489) [155:org.glassfish.jersey.containers.jersey-container-servlet-core:2.22.2]
	at org.glassfish.jersey.servlet.WebComponent.service(WebComponent.java:427) [155:org.glassfish.jersey.containers.jersey-container-servlet-core:2.22.2]
	at org.glassfish.jersey.servlet.ServletContainer.service(ServletContainer.java:388) [155:org.glassfish.jersey.containers.jersey-container-servlet-core:2.22.2]
	at org.glassfish.jersey.servlet.ServletContainer.service(ServletContainer.java:341) [155:org.glassfish.jersey.containers.jersey-container-servlet-core:2.22.2]
	at org.glassfish.jersey.servlet.ServletContainer.service(ServletContainer.java:228) [155:org.glassfish.jersey.containers.jersey-container-servlet-core:2.22.2]
	at com.eclipsesource.jaxrs.publisher.internal.ServletContainerBridge.service(ServletContainerBridge.java:76) [15:com.eclipsesource.jaxrs.publisher:5.3.1.201602281253]
	at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:845) [85:org.eclipse.jetty.servlet:9.3.14.v20161028]
	at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:584) [85:org.eclipse.jetty.servlet:9.3.14.v20161028]
	at org.ops4j.pax.web.service.jetty.internal.HttpServiceServletHandler.doHandle(HttpServiceServletHandler.java:71) [171:org.ops4j.pax.web.pax-web-jetty:6.0.6]
	at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:143) [84:org.eclipse.jetty.server:9.3.14.v20161028]
	at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:548) [82:org.eclipse.jetty.security:9.3.14.v20161028]
	at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:226) [84:org.eclipse.jetty.server:9.3.14.v20161028]
	at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1180) [84:org.eclipse.jetty.server:9.3.14.v20161028]
	at org.ops4j.pax.web.service.jetty.internal.HttpServiceContext.doHandle(HttpServiceContext.java:284) [171:org.ops4j.pax.web.pax-web-jetty:6.0.6]
	at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:512) [85:org.eclipse.jetty.servlet:9.3.14.v20161028]
	at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:185) [84:org.eclipse.jetty.server:9.3.14.v20161028]
	at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1112) [84:org.eclipse.jetty.server:9.3.14.v20161028]
	at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:141) [84:org.eclipse.jetty.server:9.3.14.v20161028]
	at org.ops4j.pax.web.service.jetty.internal.JettyServerHandlerCollection.handle(JettyServerHandlerCollection.java:80) [171:org.ops4j.pax.web.pax-web-jetty:6.0.6]
	at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:134) [84:org.eclipse.jetty.server:9.3.14.v20161028]
	at org.eclipse.jetty.server.Server.handle(Server.java:534) [84:org.eclipse.jetty.server:9.3.14.v20161028]
	at org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:320) [84:org.eclipse.jetty.server:9.3.14.v20161028]
	at org.eclipse.jetty.server.HttpConnection.onFillable(HttpConnection.java:251) [84:org.eclipse.jetty.server:9.3.14.v20161028]
	at org.eclipse.jetty.io.AbstractConnection$ReadCallback.succeeded(AbstractConnection.java:273) [76:org.eclipse.jetty.io:9.3.14.v20161028]
	at org.eclipse.jetty.io.FillInterest.fillable(FillInterest.java:95) [76:org.eclipse.jetty.io:9.3.14.v20161028]
	at org.eclipse.jetty.io.SelectChannelEndPoint$2.run(SelectChannelEndPoint.java:93) [76:org.eclipse.jetty.io:9.3.14.v20161028]
	at org.eclipse.jetty.util.thread.strategy.ExecuteProduceConsume.executeProduceConsume(ExecuteProduceConsume.java:303) [87:org.eclipse.jetty.util:9.3.14.v20161028]
	at org.eclipse.jetty.util.thread.strategy.ExecuteProduceConsume.produceConsume(ExecuteProduceConsume.java:148) [87:org.eclipse.jetty.util:9.3.14.v20161028]
	at org.eclipse.jetty.util.thread.strategy.ExecuteProduceConsume.run(ExecuteProduceConsume.java:136) [87:org.eclipse.jetty.util:9.3.14.v20161028]
	at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:671) [87:org.eclipse.jetty.util:9.3.14.v20161028]
	at org.eclipse.jetty.util.thread.QueuedThreadPool$2.run(QueuedThreadPool.java:589) [87:org.eclipse.jetty.util:9.3.14.v20161028]
	at java.lang.Thread.run(Thread.java:745) [?:?]
Caused by: org.glassfish.jersey.server.ContainerException: java.lang.OutOfMemoryError: Java heap space
	at org.glassfish.jersey.servlet.internal.ResponseWriter.rethrow(ResponseWriter.java:278) ~[?:?]
	at org.glassfish.jersey.servlet.internal.ResponseWriter.failure(ResponseWriter.java:260) ~[?:?]
	at org.glassfish.jersey.server.ServerRuntime$Responder.process(ServerRuntime.java:509) ~[158:org.glassfish.jersey.core.jersey-server:2.22.2]
	at org.glassfish.jersey.server.ServerRuntime$2.run(ServerRuntime.java:334) ~[158:org.glassfish.jersey.core.jersey-server:2.22.2]
	at org.glassfish.jersey.internal.Errors$1.call(Errors.java:271) ~[157:org.glassfish.jersey.core.jersey-common:2.22.2]
	at org.glassfish.jersey.internal.Errors$1.call(Errors.java:267) ~[157:org.glassfish.jersey.core.jersey-common:2.22.2]
	at org.glassfish.jersey.internal.Errors.process(Errors.java:315) ~[157:org.glassfish.jersey.core.jersey-common:2.22.2]
	at org.glassfish.jersey.internal.Errors.process(Errors.java:297) ~[157:org.glassfish.jersey.core.jersey-common:2.22.2]
	at org.glassfish.jersey.internal.Errors.process(Errors.java:267) ~[157:org.glassfish.jersey.core.jersey-common:2.22.2]
	at org.glassfish.jersey.process.internal.RequestScope.runInScope(RequestScope.java:317) ~[157:org.glassfish.jersey.core.jersey-common:2.22.2]
	at org.glassfish.jersey.server.ServerRuntime.process(ServerRuntime.java:305) ~[158:org.glassfish.jersey.core.jersey-server:2.22.2]
	at org.glassfish.jersey.server.ApplicationHandler.handle(ApplicationHandler.java:1154) ~[158:org.glassfish.jersey.core.jersey-server:2.22.2]
	at org.glassfish.jersey.servlet.WebComponent.serviceImpl(WebComponent.java:473) ~[155:org.glassfish.jersey.containers.jersey-container-servlet-core:2.22.2]
	... 31 more
Caused by: java.lang.OutOfMemoryError: Java heap space
2017-10-09 19:07:07.560 [WARN ] [eclipse.jetty.servlet.ServletHandler] - Error for /rest/sitemaps/events/subscribe
java.lang.OutOfMemoryError: Java heap space
2017-10-09 19:06:56.183 [WARN ] [e.jetty.util.thread.QueuedThreadPool] - 
java.lang.OutOfMemoryError: Java heap space
2017-10-09 19:07:12.714 [WARN ] [e.jetty.util.thread.QueuedThreadPool] - Unexpected thread death: org.eclipse.jetty.util.thread.QueuedThreadPool$2@3670562a in qtp1792984541{STARTED,2<=50<=50,i=6,q=0}
2017-10-09 19:08:51.916 [WARN ] [ore.internal.events.OSGiEventManager] - Dispatching event to subscriber 'org.eclipse.smarthome.model.rule.runtime.internal.engine.RuleEngineImpl@48deb62d' takes more than 5000ms.
2017-10-09 19:07:12.714 [WARN ] [org.eclipse.jetty.server.HttpChannel] - //192.168.1.80:8080/rest/sitemaps/events/subscribe
javax.servlet.ServletException: javax.servlet.ServletException: org.glassfish.jersey.server.ContainerException: java.lang.OutOfMemoryError: Java heap space
	at org.ops4j.pax.web.service.jetty.internal.JettyServerHandlerCollection.handle(JettyServerHandlerCollection.java:88) [171:org.ops4j.pax.web.pax-web-jetty:6.0.6]
	at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:134) [84:org.eclipse.jetty.server:9.3.14.v20161028]
	at org.eclipse.jetty.server.Server.handle(Server.java:534) [84:org.eclipse.jetty.server:9.3.14.v20161028]
	at org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:320) [84:org.eclipse.jetty.server:9.3.14.v20161028]
	at org.eclipse.jetty.server.HttpConnection.onFillable(HttpConnection.java:251) [84:org.eclipse.jetty.server:9.3.14.v20161028]
	at org.eclipse.jetty.io.AbstractConnection$ReadCallback.succeeded(AbstractConnection.java:273) [76:org.eclipse.jetty.io:9.3.14.v20161028]
	at org.eclipse.jetty.io.FillInterest.fillable(FillInterest.java:95) [76:org.eclipse.jetty.io:9.3.14.v20161028]
	at org.eclipse.jetty.io.SelectChannelEndPoint$2.run(SelectChannelEndPoint.java:93) [76:org.eclipse.jetty.io:9.3.14.v20161028]
	at org.eclipse.jetty.util.thread.strategy.ExecuteProduceConsume.executeProduceConsume(ExecuteProduceConsume.java:303) [87:org.eclipse.jetty.util:9.3.14.v20161028]
	at org.eclipse.jetty.util.thread.strategy.ExecuteProduceConsume.produceConsume(ExecuteProduceConsume.java:148) [87:org.eclipse.jetty.util:9.3.14.v20161028]
	at org.eclipse.jetty.util.thread.strategy.ExecuteProduceConsume.run(ExecuteProduceConsume.java:136) [87:org.eclipse.jetty.util:9.3.14.v20161028]
	at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:671) [87:org.eclipse.jetty.util:9.3.14.v20161028]
	at org.eclipse.jetty.util.thread.QueuedThreadPool$2.run(QueuedThreadPool.java:589) [87:org.eclipse.jetty.util:9.3.14.v20161028]
	at java.lang.Thread.run(Thread.java:745) [?:?]
Caused by: javax.servlet.ServletException: org.glassfish.jersey.server.ContainerException: java.lang.OutOfMemoryError: Java heap space
	at org.glassfish.jersey.servlet.WebComponent.serviceImpl(WebComponent.java:489) ~[?:?]
	at org.glassfish.jersey.servlet.WebComponent.service(WebComponent.java:427) ~[?:?]
	at org.glassfish.jersey.servlet.ServletContainer.service(ServletContainer.java:388) ~[?:?]
	at org.glassfish.jersey.servlet.ServletContainer.service(ServletContainer.java:341) ~[?:?]
	at org.glassfish.jersey.servlet.ServletContainer.service(ServletContainer.java:228) ~[?:?]
	at com.eclipsesource.jaxrs.publisher.internal.ServletContainerBridge.service(ServletContainerBridge.java:76) ~[?:?]
	at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:845) ~[?:?]
	at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:584) ~[?:?]
	at org.ops4j.pax.web.service.jetty.internal.HttpServiceServletHandler.doHandle(HttpServiceServletHandler.java:71) ~[?:?]
	at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:143) ~[?:?]
	at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:548) ~[?:?]
	at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:226) ~[?:?]
	at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1180) ~[?:?]
	at org.ops4j.pax.web.service.jetty.internal.HttpServiceContext.doHandle(HttpServiceContext.java:284) ~[?:?]
	at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:512) ~[?:?]
	at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:185) ~[?:?]
	at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1112) ~[?:?]
	at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:141) ~[?:?]
	at org.ops4j.pax.web.service.jetty.internal.JettyServerHandlerCollection.handle(JettyServerHandlerCollection.java:80) ~[?:?]
	... 13 more
Caused by: org.glassfish.jersey.server.ContainerException: java.lang.OutOfMemoryError: Java heap space
	at org.glassfish.jersey.servlet.internal.ResponseWriter.rethrow(ResponseWriter.java:278) ~[?:?]
	at org.glassfish.jersey.servlet.internal.ResponseWriter.failure(ResponseWriter.java:260) ~[?:?]
	at org.glassfish.jersey.server.ServerRuntime$Responder.process(ServerRuntime.java:509) ~[?:?]
	at org.glassfish.jersey.server.ServerRuntime$2.run(ServerRuntime.java:334) ~[?:?]
	at org.glassfish.jersey.internal.Errors$1.call(Errors.java:271) ~[?:?]
	at org.glassfish.jersey.internal.Errors$1.call(Errors.java:267) ~[?:?]
	at org.glassfish.jersey.internal.Errors.process(Errors.java:315) ~[?:?]
	at org.glassfish.jersey.internal.Errors.process(Errors.java:297) ~[?:?]
	at org.glassfish.jersey.internal.Errors.process(Errors.java:267) ~[?:?]
	at org.glassfish.jersey.process.internal.RequestScope.runInScope(RequestScope.java:317) ~[?:?]
	at org.glassfish.jersey.server.ServerRuntime.process(ServerRuntime.java:305) ~[?:?]
	at org.glassfish.jersey.server.ApplicationHandler.handle(ApplicationHandler.java:1154) ~[?:?]
	at org.glassfish.jersey.servlet.WebComponent.serviceImpl(WebComponent.java:473) ~[?:?]
	at org.glassfish.jersey.servlet.WebComponent.service(WebComponent.java:427) ~[?:?]
	at org.glassfish.jersey.servlet.ServletContainer.service(ServletContainer.java:388) ~[?:?]
	at org.glassfish.jersey.servlet.ServletContainer.service(ServletContainer.java:341) ~[?:?]
	at org.glassfish.jersey.servlet.ServletContainer.service(ServletContainer.java:228) ~[?:?]
	at com.eclipsesource.jaxrs.publisher.internal.ServletContainerBridge.service(ServletContainerBridge.java:76) ~[?:?]
	at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:845) ~[?:?]
	at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:584) ~[?:?]
	at org.ops4j.pax.web.service.jetty.internal.HttpServiceServletHandler.doHandle(HttpServiceServletHandler.java:71) ~[?:?]
	at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:143) ~[?:?]
	at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:548) ~[?:?]
	at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:226) ~[?:?]
	at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1180) ~[?:?]
	at org.ops4j.pax.web.service.jetty.internal.HttpServiceContext.doHandle(HttpServiceContext.java:284) ~[?:?]
	at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:512) ~[?:?]
	at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:185) ~[?:?]
	at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1112) ~[?:?]
	at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:141) ~[?:?]
	at org.ops4j.pax.web.service.jetty.internal.JettyServerHandlerCollection.handle(JettyServerHandlerCollection.java:80) ~[?:?]
	... 13 more
Caused by: java.lang.OutOfMemoryError: Java heap space
2017-10-09 19:09:08.881 [WARN ] [ore.internal.events.OSGiEventManager] - Dispatching event to subscriber 'org.eclipse.smarthome.core.internal.items.ItemUpdater@33e76645' takes more than 5000ms.
2017-10-09 19:09:39.592 [WARN ] [ore.internal.events.OSGiEventManager] - Dispatching event to subscriber 'org.eclipse.smarthome.io.monitor.internal.EventLogger@3aa9609' takes more than 5000ms.
2017-10-09 19:10:32.522 [WARN ] [ore.internal.events.OSGiEventManager] - Dispatching event to subscriber 'org.openhab.core.events.internal.EventBridge@21dd81f2' takes more than 5000ms.
2017-10-09 19:10:32.522 [WARN ] [ore.internal.events.OSGiEventManager] - Dispatching event to subscriber 'org.eclipse.smarthome.core.internal.items.ItemUpdater@33e76645' takes more than 5000ms.
2017-10-09 19:10:37.402 [WARN ] [org.apache.karaf.services.eventadmin] - EventAdmin: Exception during event dispatch [org.osgi.service.event.Event [topic=openhab/command/SMS_SEND_SMS] {bridgemarker=true, item=SMS_SEND_SMS, command=n/a} | {org.osgi.service.event.EventHandler, org.osgi.service.cm.ManagedService}={event.topics=openhab/*, service.pid=org.openhab.souliss, component.name=org.openhab.binding.souliss, component.id=170, service.id=325, service.bundleid=319, service.scope=bundle} | Bundle(org.openhab.binding.souliss_1.11.0.201709280110 [319])]
java.lang.NullPointerException: null
	at org.openhab.binding.souliss.internal.SoulissBinding.receiveCommand(SoulissBinding.java:135) [319:org.openhab.binding.souliss:1.11.0.201709280110]
	at org.openhab.core.events.AbstractEventSubscriber.handleEvent(AbstractEventSubscriber.java:45) [206:org.openhab.core.compat1x:2.2.0.201709301515]
	at org.apache.felix.eventadmin.impl.handler.EventHandlerProxy.sendEvent(EventHandlerProxy.java:415) [3:org.apache.karaf.services.eventadmin:4.1.2]
	at org.apache.felix.eventadmin.impl.tasks.HandlerTask.run(HandlerTask.java:90) [3:org.apache.karaf.services.eventadmin:4.1.2]
	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) [?:?]
	at java.util.concurrent.FutureTask.run(FutureTask.java:266) [?:?]
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) [?:?]
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) [?:?]
	at java.lang.Thread.run(Thread.java:745) [?:?]

Please help me to find issue. Many Thanks

Marco

Ho can I identify what istem is 33e76645 ?
Thanks

Wrong java version?

hi @sihui,

root@OpenHab2:~# java -version
java version "1.8.0_102"
Java(TM) SE Runtime Environment (build 1.8.0_102-b14)
Java HotSpot(TM) 64-Bit Server VM (build 25.102-b14, mixed mode)
root@OpenHab2:~#

@marcolino7 can you give some overview of addons you are using?

Hi,
here is bundle:list results:

 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
 31 รข Active   รข  80 รข 1.1.0.Final            รข Bean Validation API
 32 รข Active   รข  80 รข 2.0.1                  รข javax.ws.rs-api
 33 รข Active   รข  80 รข 3.2.0.v201101311130    รข ANTLR Runtime
 34 รข Active   รข  80 รข 3.2.1                  รข Commons Collections
 35 รข Active   รข  80 รข 1.1                    รข Commons Exec
 36 รข Active   รข  80 รข 2.2.0                  รข Commons IO
 37 รข Active   รข  80 รข 2.6                    รข Commons Lang
 42 รข Active   รข  80 รข 4.2.3                  รข Apache HttpClient OSGi bundle
 43 รข Active   รข  80 รข 4.2.3                  รข Apache HttpCore OSGi bundle
 49 รข Active   รข  80 รข 4.1.2                  รข Apache Karaf :: OSGi Services :: Event
 68 รข Active   รข  80 รข 2.11.0.v20150805-0538  รข EMF Common
 69 รข Active   รข  80 รข 2.11.1.v20150805-0538  รข EMF Ecore
 70 รข Active   รข  80 รข 2.11.1.v20150805-0538  รข EMF XML/XMI Persistence
 71 รข Active   รข  80 รข 3.8.0.v20160509-1230   รข Common Eclipse Runtime
 72 รข Active   รข  80 รข 3.6.100.v20160223-2218 รข Extension Registry Support
 94 รข Active   รข  80 รข 0.9.0.201709260841     รข Eclipse SmartHome Config Core
 95 รข Waiting  รข  80 รข 0.9.0.201709260841     รข Eclipse SmartHome Configuration Discovery
 96 รข Active   รข  80 รข 0.9.0.201709260841     รข Eclipse SmartHome Config Dispatcher
 97 รข Active   รข  75 รข 0.9.0.201709260841     รข Eclipse SmartHome Config XML
 98 รข Active   รข  80 รข 0.9.0.201709260841     รข Eclipse SmartHome Core
 99 รข Active   รข  80 รข 0.9.0.201709260841     รข Eclipse SmartHome Core Audio
100 รข Active   รข  80 รข 0.9.0.201709260841     รข Eclipse SmartHome AutoUpdate Binding
101 รข Active   รข  80 รข 0.9.0.201709260841     รข Eclipse SmartHome Core Binding XML
102 รข Active   รข  80 รข 0.9.0.201709260841     รข Eclipse SmartHome Core ID
103 รข Active   รข  80 รข 0.9.0.201709260841     รข Eclipse SmartHome Core Persistence
104 รข Active   รข  80 รข 0.9.0.201709260841     รข Eclipse SmartHome Scheduler Service
105 รข Active   รข  80 รข 0.9.0.201709260841     รข Eclipse SmartHome Core Thing
106 รข Active   รข  75 รข 0.9.0.201709260841     รข Eclipse SmartHome Core Thing XML
107 รข Active   รข  80 รข 0.9.0.201709260841     รข Eclipse SmartHome Transformation Service
108 รข Active   รข  80 รข 0.9.0.201709260841     รข Eclipse SmartHome Core Voice
109 รข Active   รข  80 รข 0.9.0.201709260841     รข Eclipse SmartHome Console
110 รข Active   รข  80 รข 0.9.0.201709260841     รข Eclipse SmartHome Console for OSGi runtime Karaf
111 รข Active   รข  80 รข 0.9.0.201709260841     รข Eclipse SmartHome JavaSound I/O, Fragments: 168
112 รข Active   รข  80 รข 0.9.0.201709260841     รข Eclipse SmartHome Monitor
113 รข Active   รข  80 รข 0.9.0.201709260841     รข Eclipse SmartHome Net I/O Bundle
114 รข Active   รข  80 รข 0.9.0.201709260841     รข Eclipse SmartHome REST Interface Bundle
115 รข Active   รข  80 รข 0.9.0.201709260841     รข Eclipse SmartHome Core REST API
116 รข Active   รข  80 รข 0.9.0.201709260841     รข Eclipse SmartHome REST mDNS Announcer
117 รข Active   รข  80 รข 0.9.0.201709260841     รข Eclipse SmartHome REST Interface JAX-RS optimization Bundle
118 รข Active   รข  80 รข 0.9.0.201709260841     รข Eclipse SmartHome Sitemap REST API
119 รข Active   รข  80 รข 0.9.0.201709260841     รข Eclipse SmartHome SSE REST API
120 รข Active   รข  80 รข 0.9.0.201709260841     รข Eclipse SmartHome Voice REST API
121 รข Waiting  รข  80 รข 0.9.0.201709260841     รข Eclipse SmartHome Bonjour/MDS Service Discovery Bundle
122 รข Active   รข  80 รข 0.9.0.201709260841     รข Eclipse SmartHome Web Audio Support
123 รข Active   รข  80 รข 0.9.0.201709260841     รข Eclipse SmartHome Model Core
124 รข Active   รข  80 รข 0.9.0.201709260841     รข Eclipse SmartHome Item Model
125 รข Active   รข  80 รข 0.9.0.201709260841     รข Eclipse SmartHome Item Model Runtime
126 รข Active   รข  80 รข 0.9.0.201709260841     รข Eclipse SmartHome Persistence Model
127 รข Active   รข  80 รข 0.9.0.201709260841     รข Eclipse SmartHome Persistence Runtime
128 รข Active   รข  80 รข 0.9.0.201709260841     รข Eclipse SmartHome Rule Model
129 รข Active   รข  80 รข 0.9.0.201709260841     รข Eclipse SmartHome Rule Runtime
130 รข Active   รข  80 รข 0.9.0.201709260841     รข Eclipse SmartHome Script
131 รข Active   รข  80 รข 0.9.0.201709260841     รข Eclipse SmartHome Script Runtime
132 รข Active   รข  80 รข 0.9.0.201709260841     รข Eclipse SmartHome Sitemap Model
133 รข Active   รข  80 รข 0.9.0.201709260841     รข Eclipse SmartHome Sitemap Runtime
134 รข Active   รข  80 รข 0.9.0.201709260841     รข Eclipse SmartHome Thing Model
135 รข Active   รข  80 รข 0.9.0.201709260841     รข Eclipse SmartHome Thing Model Runtime
136 รข Active   รข  80 รข 0.9.0.201709260841     รข Eclipse SmartHome Json Storage Service
137 รข Active   รข  80 รข 0.9.0.201709260841     รข Eclipse SmartHome UI
138 รข Active   รข  80 รข 0.9.0.201709260841     รข Eclipse SmartHome UI Icons
139 รข Active   รข  80 รข 0.9.0.201709260841     รข Eclipse SmartHome Classic IconSet
140 รข Active   รข  80 รข 2.12.0.v20170518-0757  รข Xtend Runtime Library
141 รข Active   รข  80 รข 2.12.0.v20170518-0757  รข Xtend Macro Interfaces
142 รข Active   รข  80 รข 2.12.0.v20170518-0959  รข Xtext
143 รข Active   รข  80 รข 2.12.0.v20170519-0752  รข Xtext Common Types
144 รข Active   รข  80 รข 2.12.0.v20170518-0959  รข Xtext Utility
145 รข Active   รข  80 รข 2.12.0.v20170519-0752  รข Xbase Model
146 รข Active   รข  80 รข 2.12.0.v20170518-0757  รข Xbase Runtime Library
161 รข Active   รข  80 รข 2.2.0                  รข JUPnP Library
162 รข Active   รข  80 รข 1.9.6                  รข MIME streaming extension
163 รข Active   รข  80 รข 5.0.2                  รข Require-Bundle Fix :: org.objectweb.asm
165 รข Active   รข  90 รข 2.2.0.201709301515     รข openHAB Core
166 รข Active   รข  80 รข 2.2.0.201709301515     รข openHAB Karaf Integration
168 รข Resolved รข  80 รข 2.2.0.201709301515     รข openHAB Sound Support, Hosts: 111
169 รข Active   รข  80 รข 2.2.0.201709301515     รข openHAB Dashboard UI
174 รข Active   รข  80 รข 3.1.4                  รข Stax2 API
182 รข Active   รข  80 รข 1.6.0                  รข Commons Codec
184 รข Active   รข  80 รข 3.2.0                  รข Commons Net
185 รข Active   รข  80 รข 3.1.0.7                รข Apache ServiceMix :: Bundles :: commons-httpclient
199 รข Active   รข  80 รข 1.11.0.201709280110    รข openHAB Exec Binding
206 รข Active   รข  80 รข 2.2.0.201709301515     รข openHAB 1.x Compatibility Layer
331 รข Active   รข  80 รข 1.1.1.201605111122     รข Swagger Provider
332 รข Active   รข  80 รข 2.3.1                  รข Gson
333 รข Active   รข  80 รข 2.1.0                  รข json-path
334 รข Active   รข  80 รข 1.5.8                  รข swagger-core
335 รข Active   รข  80 รข 1.5.8                  รข swagger-jaxrs
336 รข Active   รข  80 รข 1.5.8                  รข swagger-models
337 รข Active   รข  80 รข 2.2                    รข json-smart
338 รข Active   รข  80 รข 3.4.0                  รข Apache Commons Lang
339 รข Active   รข  80 รข 0.9.0.201704011656     รข ntp Binding
340 รข Active   รข  75 รข 0.9.0.201704011656     รข Eclipse SmartHome Exec Transformation Service
341 รข Active   รข  75 รข 0.9.0.201704011656     รข Eclipse SmartHome JavaScript Transformation Service
342 รข Active   รข  75 รข 0.9.0.201704011656     รข Eclipse SmartHome JSonPath Transformation Service
343 รข Active   รข  75 รข 0.9.0.201704011656     รข Eclipse SmartHome Map Transformation Service
344 รข Active   รข  75 รข 0.9.0.201704011656     รข Eclipse SmartHome RegEx Transformation Service
345 รข Active   รข  75 รข 0.9.0.201704011656     รข Eclipse SmartHome Xslt Transformation Service
346 รข Active   รข  80 รข 0.9.0.201704011656     รข Eclipse SmartHome Basic UI, Fragments: 364
347 รข Active   รข  80 รข 0.9.0.201704011656     รข Eclipse SmartHome Paper UI, Fragments: 366
348 รข Active   รข  80 รข 1.11.0.201709280110    รข openHAB Mail Action
349 รข Active   รข  80 รข 1.11.0.201709280110    รข openHAB Pushover Action
350 รข Active   รข  80 รข 1.11.0.201709280110    รข openHAB CalDav Command Binding
351 รข Active   รข  80 รข 1.11.0.201709280110    รข openHAB CalDav Binding
352 รข Active   รข  80 รข 2.2.0.201709301515     รข Exec Binding
353 รข Active   รข  80 รข 1.11.0.201709280110    รข openHAB HTTP Binding
354 รข Active   รข  80 รข 2.2.0.201709301515     รข Xiaomi Mi Smart Home Binding
355 รข Active   รข  80 รข 2.2.0.201709301515     รข Netatmo Binding
356 รข Active   รข  80 รข 2.2.0.201709301515     รข Network Binding
357 รข Active   รข  80 รข 1.11.0.201709280110    รข Souliss - Arduino based SmartHome Binding
358 รข Active   รข  80 รข 2.2.0.201709301515     รข ZoneMinder Binding
359 รข Active   รข  80 รข 1.11.0.201709280110    รข openHAB CalDav Calendar
360 รข Active   รข  80 รข 2.2.0.201709301515     รข openHAB REST Documentation
361 รข Active   รข  80 รข 1.11.0.201709280110    รข openHAB InfluxDB Persistence bundle
362 รข Active   รข  80 รข 1.11.0.201709280110    รข openHAB MapDB Persistence Bundle
363 รข Active   รข  80 รข 1.11.0.201709280110    รข openHAB RRD4j Persistence Bundle
364 รข Resolved รข  75 รข 2.2.0.201709301515     รข openHAB Basic UI Fragment, Hosts: 346
365 รข Active   รข  80 รข 2.2.0.201709301515     รข HABPanel User Interface
366 รข Resolved รข  75 รข 2.2.0.201709301515     รข openHAB Paper UI Theme Fragment, Hosts: 347
367 รข Active   รข  80 รข 0.9.10.v20160429-1435  รข reflections (wrap)
368 รข Active   รข  80 รข 1.5.8.v20160511-1038   รข swagger-jersey2-jaxrs (wrap)

Did you ever figure this out?

I get about 24-36 hours before the system becomes unresponsive, with OutOfMemoryErrors runtime exceptions.

I have the same problem and ask the same question.
How do I know, which item / thing the log is talking about?

Have you figured out the root cause?
Thanks in advance.

I have similar Java heap space out of memory error. increased java space to 512, lasted a bit longer but not much. Now I see
2019-05-15 06:03:34.202 [WARN ] [.util.thread.strategy.EatWhatYouKill] -
java.lang.OutOfMemoryError: Java heap space
2019-05-15 06:07:11.465 [WARN ] [.util.thread.strategy.EatWhatYouKill] -
java.lang.OutOfMemoryError: Java heap space
2019-05-15 06:09:03.752 [WARN ] [org.eclipse.jetty.server.HttpChannel] - /smartthings/state
java.lang.OutOfMemoryError: Java heap space
2019-05-15 06:09:31.271 [WARN ] [e.jetty.util.thread.QueuedThreadPool] - Unexpected thread death: org.eclipse.jetty.util.thread.QueuedThreadPool$2@15fc054 in QueuedThreadPool[qtp24613949]@177943d{STARTED,2<=22<=50,i=3,q=0}[ReservedThreadExecutor@bbeae4{s=1/4,p=1}]
2019-05-15 06:31:25.961 [WARN ] [e.jetty.util.thread.QueuedThreadPool] - Unexpected thread death: org.eclipse.jetty.util.thread.QueuedThreadPool$2@15fc054 in QueuedThreadPool[qtp24613949]@177943d{STARTED,2<=20<=50,i=1,q=0}[ReservedThreadExecutor@bbeae4{s=0/4,p=1}]
2019-05-15 06:31:55.745 [ERROR] [org.apache.felix.fileinstall ] - In main loop, we have serious trouble
java.lang.OutOfMemoryError: Java heap space

running Java 1.8.0_212
openhab2=2.5.0~S1589-1

General comment - the thing that discovers there is insufficient memory is most likely not the cause of it.

Iโ€™m having similar issues with a bug from Jetty. Some ToString() method is causing a crash rendering openHAB unsuable. I thought it might be related to this issue.

I reference the issue here: https://github.com/eclipse/jetty.project/issues/2688#issuecomment-541064161

openhab throws these exeptions in the log when being unreachable.

2019-10-11 03:50:14.138 [WARN ] [e.jetty.util.thread.QueuedThreadPool] - Unexpected thread death: [FAILED toString()] in [FAILED toString()]
2019-10-11 03:50:11.296 [WARN ] [e.jetty.util.thread.QueuedThreadPool] - Unexpected thread death: org.eclipse.jetty.util.thread.QueuedThreadPool$2@130d4ee in [FAILED toString()]
2019-10-11 03:50:14.142 [WARN ] [e.jetty.util.thread.QueuedThreadPool] - Unexpected thread death: org.eclipse.jetty.util.thread.QueuedThreadPool$2@fc9892 in [FAILED toString()]
2019-10-11 03:50:14.141 [WARN ] [e.jetty.util.thread.QueuedThreadPool] - Unexpected thread death: org.eclipse.jetty.util.thread.QueuedThreadPool$2@1e065a6 in [FAILED toString()]
2019-10-11 03:50:14.143 [WARN ] [e.jetty.util.thread.QueuedThreadPool] - Unexpected thread death: org.eclipse.jetty.util.thread.QueuedThreadPool$2@e7633a in [FAILED toString()]
2019-10-11 03:50:14.145 [WARN ] [e.jetty.util.thread.QueuedThreadPool] - Unexpected thread death: org.eclipse.jetty.util.thread.QueuedThreadPool$2@10e9540 in [FAILED toString()]

systemctl status openhab2.service gives the following info:

    Oct 11 03:50:17 OpenHAB karaf[3213]: Exception in thread "HttpClient@33fdb3-957" java.lang.OutOfMemoryError: Java heap space
    Oct 11 03:50:17 OpenHAB karaf[3213]: Exception in thread "HttpClient@16a0344-2229" java.lang.OutOfMemoryError: Java heap space
    Oct 11 03:50:17 OpenHAB karaf[3213]: Exception in thread "HttpClient@100c7b7-5851" java.lang.OutOfMemoryError: Java heap space
    Oct 11 03:50:17 OpenHAB karaf[3213]: Exception in thread "HttpClient@fb5789-4275" java.lang.OutOfMemoryError: Java heap space
    Oct 11 03:50:17 OpenHAB karaf[3213]: Exception in thread "HttpClient@33f7ae-5088" java.lang.OutOfMemoryError: Java heap space
    Oct 11 03:50:17 OpenHAB karaf[3213]: Exception in thread "HttpClient@cafc2b-16135" Exception in thread "HttpClient@194c62c-2139" java.lang.OutOfMemoryError: Java heap space
    Oct 11 03:50:17 OpenHAB karaf[3213]: java.lang.OutOfMemoryError: Java heap space
    Oct 11 03:50:17 OpenHAB karaf[3213]: Exception in thread "HttpClient@1f7d306-16118" java.lang.OutOfMemoryError: Java heap space
    Oct 11 03:50:17 OpenHAB karaf[3213]: Exception in thread "HttpClient@17aa674-6198" java.lang.OutOfMemoryError: Java heap space

it seems to be spawning unlimited amounts of threads crashing other processes like ssh. Hope it doesnโ€™t break my Pi by overheating itโ€ฆ

The latest comment in your link says it is not jetty. I see the messages show a heap space issue so I would guess an OH memory leak somewhere. My RPi 3B+ has gone unresponsive, killing OH & ssh server. I could not get a prompt on the console so I have been power cycling the Pi to restore service.

same here. Which is not a long-term solution to this issue. As I am running Openhab 2.4 STABLE after my reinstall (hoping it would fix the damn problem), I would expect this not to be an issue in this repo.

Bad timing too, I had just about logged an entire year of power usage data. Now my comparison for the next year wonโ€™t effing make sense.

I think itโ€™s time to report this as a bug.

Restore from backup? :wink:

I think the last lockup I had was on 2.5M2. I am now running Milestone 3.

Thatโ€™s what i mentioned in my previous post. Restoring previous data made the bug appear more frequently

This is an old thread and starting a new one might make more sense if you want to try to debug your issue.
@dikkedimi you mentioned that your system is running on a Pi but other relevant details of your set up will help the other forum members help you such as operating system and version. If Openhabian what version? OpenHAB version
Most important details in this type of issue is what else is running on the Pi? Is a database running or any other services. Also what bindings are running in OpenHAB

1 Like