OH2 crash after 3-4 days running

(marcolino) #1

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

0 Likes

(marcolino) #2

Ho can I identify what istem is 33e76645 ?
Thanks

0 Likes

(SiHui) #3

Wrong java version?

0 Likes

(marcolino) #4

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:~#

0 Likes

(Martin van Wingerden) #5

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

0 Likes

(marcolino) #6

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)

0 Likes

(G H) #7

Did you ever figure this out?

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

0 Likes

(E. Gerland) #8

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.

0 Likes

(Viking E) #9

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

0 Likes

(Rossko57) #10

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

0 Likes