Rrdchart crashes openhab


(Thomas Binder) #1

I’m using openHABian 1.4 with stable OH2.3 on a raspberry Pi3+B.

After some update a few weeks ago, my oh2 crashes with apparent connection to rrdchart.
I’m using rrdchart-generated chart in my sitemap and let it create took real files every 15min. After some uptime it seems, oh2 crashes and can’t connect other bindings as well.

 Linux openHAB2 4.14.71-v7+ #1145 SMP Fri Sep 21 15:38:35 BST 2018 armv7l

The programs included with the Debian GNU/Linux system are free software;
the exact distribution terms for each program are described in the
individual files in /usr/share/doc/*/copyright.

Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
permitted by applicable law.
Last login: Sat Dec  1 13:08:22 2018 from 192.168.xx.xx

###############################################################################
################# openHAB2 ####################################################
###############################################################################
##             Ip = 192.168.xx.xx
##        Release = Raspbian GNU/Linux 9 (stretch)
##         Kernel = Linux 4.14.71-v7+
##       Platform = Raspberry Pi 3 Model B Rev 1.2
##         Uptime = 17 day(s). 11:23:42
##      CPU Usage = 29.41 % avg over 4 cpu(s)  (4 core(s) x 1 socket(s))
##       CPU Load = 1m: 1.36, 5m: 1.33, 15m: 1.36
##         Memory = Free: 0.08GB (9%), Used: 0.86GB (91%), Total: 0.95GB
##           Swap = Free: 0.07GB (81%), Used: 0.01GB (19%), Total: 0.09GB
##           Root = Free: 3.89GB (56%), Used: 2.99GB (44%), Total: 7.21GB
##        Updates = 6 apt updates available.
##       Sessions = 1 sessions
##      Processes = 145 running processes of 32768 maximum processes
###############################################################################

              Welcome to            __  _____    ____  _
            ____  ____  ___  ____  / / / /   |  / __ )(_)___ _____
           / __ \/ __ \/ _ \/ __ \/ /_/ / /| | / __  / / __ `/ __ \
          / /_/ / /_/ /  __/ / / / __  / ___ |/ /_/ / / /_/ / / / /
          \____/ .___/\___/_/ /_/_/ /_/_/  |_/_____/_/\__,_/_/ /_/
              /_/
                  openHAB 2.3.0-1 (Release Build)


Looking for a place to get started? Check out 'sudo openhabian-config' and the
documentation at http://docs.openhab.org/installation/openhabian.html
The openHAB dashboard can be reached at http://openHAB2:8080
To interact with openHAB on the command line, execute: 'openhab-cli --help'

[08:27:25] openhabian@openHAB2:~$ sudo /etc/init.d/openhab2 status
[sudo] Passwort für openhabian:
● openhab2.service - openHAB 2 - empowering the smart home
   Loaded: loaded (/usr/lib/systemd/system/openhab2.service; enabled; vendor preset: enabled)
   Active: active (running) since Fri 2018-11-23 20:02:08 CET; 1 weeks 1 days ago
     Docs: https://www.openhab.org/docs/
           https://community.openhab.org
 Main PID: 30653 (java)
   CGroup: /system.slice/openhab2.service
           ├─ 4759 ping -w 5 -c 1 192.168.178.57
           ├─ 4764 ping -w 5 -c 1 192.168.178.43
           └─30653 /usr/bin/java -Dopenhab.home=/usr/share/openhab2 -Dopen…in
Dez 02 08:12:11 openHAB2 karaf[30653]: Exception in thread "OneWireBindin…ionDez 02 08:12:11 openHAB2 karaf[30653]:         at org.owfs.jowfsclient.in…09)Dez 02 08:12:11 openHAB2 karaf[30653]:         at org.owfs.jowfsclient.in…93)Dez 02 08:12:15 openHAB2 karaf[30653]:         at org.openhab.binding.one…17)Dez 02 08:12:15 openHAB2 karaf[30653]:         at org.openhab.binding.one…78)Dez 02 08:12:15 openHAB2 karaf[30653]:         at org.openhab.binding.one…23)Dez 02 08:12:15 openHAB2 karaf[30653]:         at org.openhab.binding.one…04)Dez 02 08:12:15 openHAB2 karaf[30653]:         at org.openhab.binding.one…58)Dez 02 08:12:15 openHAB2 karaf[30653]:         at org.openhab.binding.one…61)Dez 02 08:25:51 openHAB2 karaf[30653]: Exception in thread "Image Fetcher…aceHint: Some lines were ellipsized, use -l to show in full.
[08:27:41] openhabian@openHAB2:~$ 

this is my script:

#!/bin/bash
# Verzeichnis und Name
OUTPUTDIR="/home/openhabian/rbcharts/"
OUTPUTFILE="Rossbuehel_Chart_"
# openhab
HOSTURL="http://192.168.xx.xx:8080/rrdchart.png?items="
ITEMS="RB_MiWeather_Temperature_Outside,RB_MiWeather_Temperature_Hall,RB_MiWeather_Temperature_Kitchen,RB_MiWeather_Temperature_Matresses"

# letzten 4h
echo curl -m 10 -o ${OUTPUTDIR}/${OUTPUTFILE}4h.png ${HOSTURL}${ITEMS}\&period=4h
curl -m 10 -o ${OUTPUTDIR}/${OUTPUTFILE}4h.png ${HOSTURL}${ITEMS}\&period=4h
# letzten 12h
curl -m 10 -o ${OUTPUTDIR}/${OUTPUTFILE}12h.png ${HOSTURL}${ITEMS}\&period=12h

# letzten 24h
curl -m 10 -o ${OUTPUTDIR}/${OUTPUTFILE}D.png ${HOSTURL}${ITEMS}\&period=D

# letzten 48h
curl -m 10 -o ${OUTPUTDIR}/${OUTPUTFILE}3D.png ${HOSTURL}${ITEMS}\&period=3D

# letzte Woche
curl -m 10 -o ${OUTPUTDIR}/${OUTPUTFILE}W.png ${HOSTURL}${ITEMS}\&period=W

# letzter Monat
curl -m 10 -o ${OUTPUTDIR}/${OUTPUTFILE}M.png ${HOSTURL}${ITEMS}\&period=M

# letztes Jahr
curl -m 10 -o ${OUTPUTDIR}/${OUTPUTFILE}Y.png ${HOSTURL}${ITEMS}\&period=Y

# clone zu onedrive und google drive
rclone sync ${OUTPUTDIR} rossbuehel_google:rbcharts # syncs /local/path to the remote
rclone sync ${OUTPUTDIR} rossbuehel_onedrive:rbcharts # syncs /local/path to the remote

openhab.log Shows the seemingly difficulties for OH to connect to the bindings due to heap space issues?
Is it solely a rrdchart-issue or can I do something About it in openHAB?

2018-12-02 08:23:38.453 [WARN ] [eclipse.jetty.servlet.ServletHandler] - Error for /rrdchart.png
java.lang.OutOfMemoryError: Java heap space
2018-12-02 08:23:01.522 [WARN ] [eclipse.jetty.servlet.ServletHandler] - Error for /rrdchart.png
java.lang.OutOfMemoryError: Java heap space
2018-12-02 08:22:10.608 [WARN ] [eclipse.jetty.servlet.ServletHandler] - Error for /rrdchart.png
java.lang.OutOfMemoryError: Java heap space
2018-12-02 08:19:55.504 [WARN ] [eclipse.jetty.servlet.ServletHandler] - Error for /rrdchart.png
java.lang.OutOfMemoryError: Java heap space
2018-12-02 08:17:52.764 [WARN ] [eclipse.jetty.servlet.ServletHandler] - Error for /rrdchart.png
java.lang.OutOfMemoryError: Java heap space
2018-12-02 08:17:34.519 [WARN ] [eclipse.jetty.servlet.ServletHandler] - Error for /rrdchart.png
java.lang.OutOfMemoryError: Java heap space
2018-12-02 08:16:09.868 [WARN ] [eclipse.jetty.servlet.ServletHandler] - Error for /rrdchart.png
java.lang.OutOfMemoryError: Java heap space
2018-12-02 08:15:14.296 [WARN ] [me.core.internal.events.EventHandler] - Dispatching event to subscriber 'org.eclipse.smarthome.io.monitor.internal.EventLogger@1a4293f' takes more than 5000ms.
2018-12-02 08:15:06.732 [WARN ] [org.apache.karaf.services.eventadmin] - EventAdmin: Exception during event dispatch [org.osgi.service.event.Event [topic=openhab/update/Oktopus_Temp_zumPuffer] {item=Oktopus_Temp_zumPuffer, state=23.4, bridgemarker=true, timestamp=1543723194576} | {org.osgi.service.event.EventHandler, tuwien.auto.calimero.process.ProcessListener}={service.id=311, service.bundleid=219, service.scope=bundle, event.topics=openhab/*, component.name=org.openhab.binding.knx, component.id=23} | Bundle(org.openhab.binding.knx_1.12.0 [219])]
tuwien.auto.calimero.exception.KNXIllegalStateException: process communicator detached
	at tuwien.auto.calimero.process.ProcessCommunicatorImpl.write(ProcessCommunicatorImpl.java:465) [219:org.openhab.binding.knx:1.12.0]
	at tuwien.auto.calimero.process.ProcessCommunicatorImpl.write(ProcessCommunicatorImpl.java:438) [219:org.openhab.binding.knx:1.12.0]
	at org.openhab.binding.knx.internal.bus.KNXBinding.writeToKNX(KNXBinding.java:149) [219:org.openhab.binding.knx:1.12.0]
	at org.openhab.binding.knx.internal.bus.KNXBinding.internalReceiveUpdate(KNXBinding.java:126) [219:org.openhab.binding.knx:1.12.0]
	at org.openhab.core.binding.AbstractBinding.receiveUpdate(AbstractBinding.java:113) [194:org.openhab.core.compat1x:2.3.0]
	at org.openhab.core.events.AbstractEventSubscriber.handleEvent(AbstractEventSubscriber.java:39) [194:org.openhab.core.compat1x:2.3.0]
	at org.apache.felix.eventadmin.impl.handler.EventHandlerProxy.sendEvent(EventHandlerProxy.java:415) [3:org.apache.karaf.services.eventadmin:4.1.5]
	at org.apache.felix.eventadmin.impl.tasks.HandlerTask.runWithoutBlacklistTiming(HandlerTask.java:82) [3:org.apache.karaf.services.eventadmin:4.1.5]
	at org.apache.felix.eventadmin.impl.tasks.SyncDeliverTasks.execute(SyncDeliverTasks.java:104) [3:org.apache.karaf.services.eventadmin:4.1.5]
	at org.apache.felix.eventadmin.impl.tasks.AsyncDeliverTasks$TaskExecuter.run(AsyncDeliverTasks.java:166) [3:org.apache.karaf.services.eventadmin:4.1.5]
	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:1149) [?:?]
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) [?:?]
	at java.lang.Thread.run(Thread.java:748) [?:?]
2018-12-02 08:15:25.854 [WARN ] [nx.internal.connection.KNXConnection] - KNX link has been lost (reason: server request on object tunneling link link (closed) 192.168.178.6:3671 TP1 medium, device 0.0.0, hopcount 6)
2018-12-02 08:15:25.862 [INFO ] [io.openhabcloud.internal.CloudClient] - Connected to the openHAB Cloud service (UUID = a1781dcc-141b-40fe-855c-b8aa361bf019, base URL = http://localhost:8080)
2018-12-02 08:26:28.068 [WARN ] [eclipse.jetty.servlet.ServletHandler] - /rrdchart.png
javax.imageio.IIOException: I/O error writing PNG file!
	at com.sun.imageio.plugins.png.PNGImageWriter.write(PNGImageWriter.java:1168) [?:?]
	at javax.imageio.ImageWriter.write(ImageWriter.java:615) [?:?]
	at javax.imageio.ImageIO.doWrite(ImageIO.java:1612) [?:?]
	at javax.imageio.ImageIO.write(ImageIO.java:1578) [?:?]
	at org.openhab.persistence.rrd4j.internal.charts.RRD4jChartServlet.service(RRD4jChartServlet.java:159) [227:org.openhab.persistence.rrd4j:1.12.0]
	at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:848) [85:org.eclipse.jetty.servlet:9.3.21.v20170918]
	at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:584) [85:org.eclipse.jetty.servlet:9.3.21.v20170918]
	at org.ops4j.pax.web.service.jetty.internal.HttpServiceServletHandler.doHandle(HttpServiceServletHandler.java:71) [183:org.ops4j.pax.web.pax-web-jetty:6.0.9]
	at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:143) [84:org.eclipse.jetty.server:9.3.21.v20170918]
	at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:548) [82:org.eclipse.jetty.security:9.3.21.v20170918]
	at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:226) [84:org.eclipse.jetty.server:9.3.21.v20170918]
	at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1180) [84:org.eclipse.jetty.server:9.3.21.v20170918]
	at org.ops4j.pax.web.service.jetty.internal.HttpServiceContext.doHandle(HttpServiceContext.java:284) [183:org.ops4j.pax.web.pax-web-jetty:6.0.9]
	at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:512) [85:org.eclipse.jetty.servlet:9.3.21.v20170918]
	at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:185) [84:org.eclipse.jetty.server:9.3.21.v20170918]
	at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1112) [84:org.eclipse.jetty.server:9.3.21.v20170918]
	at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:141) [84:org.eclipse.jetty.server:9.3.21.v20170918]
	at org.ops4j.pax.web.service.jetty.internal.JettyServerHandlerCollection.handle(JettyServerHandlerCollection.java:80) [183:org.ops4j.pax.web.pax-web-jetty:6.0.9]
	at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:134) [84:org.eclipse.jetty.server:9.3.21.v20170918]
	at org.eclipse.jetty.server.Server.handle(Server.java:534) [84:org.eclipse.jetty.server:9.3.21.v20170918]
	at org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:333) [84:org.eclipse.jetty.server:9.3.21.v20170918]
	at org.eclipse.jetty.server.HttpConnection.onFillable(HttpConnection.java:251) [84:org.eclipse.jetty.server:9.3.21.v20170918]
	at org.eclipse.jetty.io.AbstractConnection$ReadCallback.succeeded(AbstractConnection.java:283) [76:org.eclipse.jetty.io:9.3.21.v20170918]
	at org.eclipse.jetty.io.FillInterest.fillable(FillInterest.java:108) [76:org.eclipse.jetty.io:9.3.21.v20170918]
	at org.eclipse.jetty.io.SelectChannelEndPoint$2.run(SelectChannelEndPoint.java:93) [76:org.eclipse.jetty.io:9.3.21.v20170918]
	at org.eclipse.jetty.util.thread.strategy.ExecuteProduceConsume.executeProduceConsume(ExecuteProduceConsume.java:303) [87:org.eclipse.jetty.util:9.3.21.v20170918]
	at org.eclipse.jetty.util.thread.strategy.ExecuteProduceConsume.produceConsume(ExecuteProduceConsume.java:148) [87:org.eclipse.jetty.util:9.3.21.v20170918]
	at org.eclipse.jetty.util.thread.strategy.ExecuteProduceConsume.run(ExecuteProduceConsume.java:136) [87:org.eclipse.jetty.util:9.3.21.v20170918]
	at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:671) [87:org.eclipse.jetty.util:9.3.21.v20170918]
	at org.eclipse.jetty.util.thread.QueuedThreadPool$2.run(QueuedThreadPool.java:589) [87:org.eclipse.jetty.util:9.3.21.v20170918]
	at java.lang.Thread.run(Thread.java:748) [?:?]
Caused by: org.eclipse.jetty.io.EofException
	at org.eclipse.jetty.io.ChannelEndPoint.flush(ChannelEndPoint.java:199) ~[76:org.eclipse.jetty.io:9.3.21.v20170918]
	at org.eclipse.jetty.io.WriteFlusher.flush(WriteFlusher.java:420) ~[76:org.eclipse.jetty.io:9.3.21.v20170918]
	at org.eclipse.jetty.io.WriteFlusher.write(WriteFlusher.java:313) ~[76:org.eclipse.jetty.io:9.3.21.v20170918]
	at org.eclipse.jetty.io.AbstractEndPoint.write(AbstractEndPoint.java:147) ~[76:org.eclipse.jetty.io:9.3.21.v20170918]
	at org.eclipse.jetty.server.HttpConnection$SendCallback.process(HttpConnection.java:739) ~[84:org.eclipse.jetty.server:9.3.21.v20170918]
	at org.eclipse.jetty.util.IteratingCallback.processing(IteratingCallback.java:241) ~[87:org.eclipse.jetty.util:9.3.21.v20170918]
	at org.eclipse.jetty.util.IteratingCallback.iterate(IteratingCallback.java:224) ~[87:org.eclipse.jetty.util:9.3.21.v20170918]
	at org.eclipse.jetty.server.HttpConnection.send(HttpConnection.java:519) ~[84:org.eclipse.jetty.server:9.3.21.v20170918]
	at org.eclipse.jetty.server.HttpChannel.sendResponse(HttpChannel.java:750) ~[84:org.eclipse.jetty.server:9.3.21.v20170918]
	at org.eclipse.jetty.server.HttpChannel.write(HttpChannel.java:801) ~[84:org.eclipse.jetty.server:9.3.21.v20170918]
	at org.eclipse.jetty.server.HttpOutput.write(HttpOutput.java:235) ~[84:org.eclipse.jetty.server:9.3.21.v20170918]
	at org.eclipse.jetty.server.HttpOutput.write(HttpOutput.java:219) ~[84:org.eclipse.jetty.server:9.3.21.v20170918]
	at org.eclipse.jetty.server.HttpOutput.flush(HttpOutput.java:355) ~[84:org.eclipse.jetty.server:9.3.21.v20170918]
	at javax.imageio.stream.FileCacheImageOutputStream.flushBefore(FileCacheImageOutputStream.java:258) ~[?:?]
	at com.sun.imageio.plugins.png.IDATOutputStream.finishChunk(PNGImageWriter.java:196) ~[?:?]
	at com.sun.imageio.plugins.png.IDATOutputStream.finish(PNGImageWriter.java:254) ~[?:?]
	at com.sun.imageio.plugins.png.PNGImageWriter.write_IDAT(PNGImageWriter.java:945) ~[?:?]
	at com.sun.imageio.plugins.png.PNGImageWriter.write(PNGImageWriter.java:1158) ~[?:?]
	... 30 more
Caused by: java.io.IOException: Datenübergabe unterbrochen (broken pipe)
	at sun.nio.ch.FileDispatcherImpl.writev0(Native Method) ~[?:?]
	at sun.nio.ch.SocketDispatcher.writev(SocketDispatcher.java:51) ~[?:?]
	at org.openhab.binding.network.internal.PresenceDetection.lambda$3(PresenceDetection.java:283) ~[?:?]
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) [?:?]
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) [?:?]
	at java.lang.Thread.run(Thread.java:748) [?:?]
Caused by: java.lang.InterruptedException
	at java.util.concurrent.FutureTask.awaitDone(FutureTask.java:404) ~[?:?]
	at java.util.concurrent.FutureTask.get(FutureTask.java:204) ~[?:?]
	at org.eclipse.smarthome.core.internal.common.InvocationHandlerSync.invoke(InvocationHandlerSync.java:66) ~[?:?]
	... 18 more
2018-12-02 08:28:10.021 [WARN ] [me.core.internal.events.EventHandler] - Dispatching event to subscriber 'org.eclipse.smarthome.io.monitor.internal.EventLogger@1a4293f' takes more than 5000ms.
2018-12-02 08:28:09.937 [ERROR] [io.openhabcloud.internal.CloudClient] - Socket.IO error: {}
io.socket.engineio.client.EngineIOException: websocket error
	at io.socket.engineio.client.Transport.onError(Transport.java:71) [224:org.openhab.io.openhabcloud:2.3.0]
	at io.socket.engineio.client.transports.WebSocket.access$500(WebSocket.java:28) [224:org.openhab.io.openhabcloud:2.3.0]
	at io.socket.engineio.client.transports.WebSocket$2$5.run(WebSocket.java:150) [224:org.openhab.io.openhabcloud:2.3.0]
	at io.socket.thread.EventThread$2.run(EventThread.java:80) [224:org.openhab.io.openhabcloud:2.3.0]
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) [?:?]
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) [?:?]
	at java.lang.Thread.run(Thread.java:748) [?:?]
Caused by: java.io.EOFException
	at okio.RealBufferedSource.require(RealBufferedSource.java:59) ~[?:?]
	at okio.RealBufferedSource.readByte(RealBufferedSource.java:72) ~[?:?]
	at okhttp3.internal.ws.WebSocketReader.readHeader(WebSocketReader.java:115) ~[?:?]
	at okhttp3.internal.ws.WebSocketReader.processNextFrame(WebSocketReader.java:104) ~[?:?]
	at okhttp3.internal.ws.RealWebSocket.readMessage(RealWebSocket.java:97) ~[?:?]
	at okhttp3.ws.WebSocketCall.createWebSocket(WebSocketCall.java:152) ~[?:?]
	at okhttp3.ws.WebSocketCall.access$000(WebSocketCall.java:41) ~[?:?]
	at okhttp3.ws.WebSocketCall$1.onResponse(WebSocketCall.java:97) ~[?:?]
	at okhttp3.RealCall$AsyncCall.execute(RealCall.java:126) ~[?:?]
	at okhttp3.internal.NamedRunnable.run(NamedRunnable.java:32) ~[?:?]
	... 3 more
2018-12-02 08:28:06.070 [WARN ] [eclipse.jetty.servlet.ServletHandler] - /rrdchart.png
javax.imageio.IIOException: I/O error writing PNG file!
	at com.sun.imageio.plugins.png.PNGImageWriter.write(PNGImageWriter.java:1168) [?:?]
	at javax.imageio.ImageWriter.write(ImageWriter.java:615) [?:?]
	at javax.imageio.ImageIO.doWrite(ImageIO.java:1612) [?:?]
	at javax.imageio.ImageIO.write(ImageIO.java:1578) [?:?]
	at org.openhab.persistence.rrd4j.internal.charts.RRD4jChartServlet.service(RRD4jChartServlet.java:159) [227:org.openhab.persistence.rrd4j:1.12.0]
	at org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:848) [85:org.eclipse.jetty.servlet:9.3.21.v20170918]
	at org.eclipse.jetty.servlet.ServletHandler.doHandle(ServletHandler.java:584) [85:org.eclipse.jetty.servlet:9.3.21.v20170918]
	at org.ops4j.pax.web.service.jetty.internal.HttpServiceServletHandler.doHandle(HttpServiceServletHandler.java:71) [183:org.ops4j.pax.web.pax-web-jetty:6.0.9]
	at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:143) [84:org.eclipse.jetty.server:9.3.21.v20170918]
	at org.eclipse.jetty.security.SecurityHandler.handle(SecurityHandler.java:548) [82:org.eclipse.jetty.security:9.3.21.v20170918]
	at org.eclipse.jetty.server.session.SessionHandler.doHandle(SessionHandler.java:226) [84:org.eclipse.jetty.server:9.3.21.v20170918]
	at org.eclipse.jetty.server.handler.ContextHandler.doHandle(ContextHandler.java:1180) [84:org.eclipse.jetty.server:9.3.21.v20170918]
	at org.ops4j.pax.web.service.jetty.internal.HttpServiceContext.doHandle(HttpServiceContext.java:284) [183:org.ops4j.pax.web.pax-web-jetty:6.0.9]
	at org.eclipse.jetty.servlet.ServletHandler.doScope(ServletHandler.java:512) [85:org.eclipse.jetty.servlet:9.3.21.v20170918]
	at org.eclipse.jetty.server.session.SessionHandler.doScope(SessionHandler.java:185) [84:org.eclipse.jetty.server:9.3.21.v20170918]
	at org.eclipse.jetty.server.handler.ContextHandler.doScope(ContextHandler.java:1112) [84:org.eclipse.jetty.server:9.3.21.v20170918]
	at org.eclipse.jetty.server.handler.ScopedHandler.handle(ScopedHandler.java:141) [84:org.eclipse.jetty.server:9.3.21.v20170918]
	at org.ops4j.pax.web.service.jetty.internal.JettyServerHandlerCollection.handle(JettyServerHandlerCollection.java:80) [183:org.ops4j.pax.web.pax-web-jetty:6.0.9]
	at org.eclipse.jetty.server.handler.HandlerWrapper.handle(HandlerWrapper.java:134) [84:org.eclipse.jetty.server:9.3.21.v20170918]
	at org.eclipse.jetty.server.Server.handle(Server.java:534) [84:org.eclipse.jetty.server:9.3.21.v20170918]
	at org.eclipse.jetty.server.HttpChannel.handle(HttpChannel.java:333) [84:org.eclipse.jetty.server:9.3.21.v20170918]
	at org.eclipse.jetty.server.HttpConnection.onFillable(HttpConnection.java:251) [84:org.eclipse.jetty.server:9.3.21.v20170918]
	at org.eclipse.jetty.io.AbstractConnection$ReadCallback.succeeded(AbstractConnection.java:283) [76:org.eclipse.jetty.io:9.3.21.v20170918]
	at org.eclipse.jetty.io.FillInterest.fillable(FillInterest.java:108) [76:org.eclipse.jetty.io:9.3.21.v20170918]
	at org.eclipse.jetty.io.SelectChannelEndPoint$2.run(SelectChannelEndPoint.java:93) [76:org.eclipse.jetty.io:9.3.21.v20170918]
	at org.eclipse.jetty.util.thread.strategy.ExecuteProduceConsume.executeProduceConsume(ExecuteProduceConsume.java:303) [87:org.eclipse.jetty.util:9.3.21.v20170918]
	at org.eclipse.jetty.util.thread.strategy.ExecuteProduceConsume.produceConsume(ExecuteProduceConsume.java:148) [87:org.eclipse.jetty.util:9.3.21.v20170918]
	at org.eclipse.jetty.util.thread.strategy.ExecuteProduceConsume.run(ExecuteProduceConsume.java:136) [87:org.eclipse.jetty.util:9.3.21.v20170918]
	at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:671) [87:org.eclipse.jetty.util:9.3.21.v20170918]
	at org.eclipse.jetty.util.thread.QueuedThreadPool$2.run(QueuedThreadPool.java:589) [87:org.eclipse.jetty.util:9.3.21.v20170918]
	at java.lang.Thread.run(Thread.java:748) [?:?]
Caused by: org.eclipse.jetty.io.EofException
	at org.eclipse.jetty.io.ChannelEndPoint.flush(ChannelEndPoint.java:199) ~[76:org.eclipse.jetty.io:9.3.21.v20170918]
	at org.eclipse.jetty.io.WriteFlusher.flush(WriteFlusher.java:420) ~[76:org.eclipse.jetty.io:9.3.21.v20170918]
	at org.eclipse.jetty.io.WriteFlusher.write(WriteFlusher.java:313) ~[76:org.eclipse.jetty.io:9.3.21.v20170918]
	at org.eclipse.jetty.io.AbstractEndPoint.write(AbstractEndPoint.java:147) ~[76:org.eclipse.jetty.io:9.3.21.v20170918]
	at org.eclipse.jetty.server.HttpConnection$SendCallback.process(HttpConnection.java:739) ~[84:org.eclipse.jetty.server:9.3.21.v20170918]
	at org.eclipse.jetty.util.IteratingCallback.processing(IteratingCallback.java:241) ~[87:org.eclipse.jetty.util:9.3.21.v20170918]
	at org.eclipse.jetty.util.IteratingCallback.iterate(IteratingCallback.java:224) ~[87:org.eclipse.jetty.util:9.3.21.v20170918]
	at org.eclipse.jetty.server.HttpConnection.send(HttpConnection.java:519) ~[84:org.eclipse.jetty.server:9.3.21.v20170918]
	at org.eclipse.jetty.server.HttpChannel.sendResponse(HttpChannel.java:750) ~[84:org.eclipse.jetty.server:9.3.21.v20170918]
	at org.eclipse.jetty.server.HttpChannel.write(HttpChannel.java:801) ~[84:org.eclipse.jetty.server:9.3.21.v20170918]
	at org.eclipse.jetty.server.HttpOutput.write(HttpOutput.java:235) ~

(Vincent Regaud) #2

It looks like you are running out of memory.
Try increasing your swap size.
I am on the phone so I can’t post instructions but it’s easy to find
Google increase raspberry swap


(CM6.5 H102) #3

In addition to increasing swap size.

You can give Java the max amount of memory by editing /etc/default/openhab2 and add

EXTRA_JAVA_OPTS="-Xms400m -Xmx650m"

(Thomas Binder) #4

Thanks for your help. What’s strange, the error appears after days, so I suspect a memory leak or something?
I’ll try giving the JVM a bit more memory…