Too many open files

  • Platform information:
    • Hardware: Pi4
    • OS: Latest OpenHABian
    • Java Runtime Environment: openjdk version “11.0.10” 2021-01-19 LTS
    • openHAB version: 3.0.1
  • Issue of the topic: After running for some days, the Openhab Web UI stops responding. The log file throws may errors like below. Rules keep running, and the terminal is still responsive. A restart makes everything work again.

2021-03-15 11:46:59.850 [WARN ] [lipse.jetty.server.AbstractConnector] -
java.io.IOException: Too many open files
at sun.nio.ch.ServerSocketChannelImpl.accept0(Native Method) ~[?:?]
at sun.nio.ch.ServerSocketChannelImpl.accept(ServerSocketChannelImpl.java:533) ~[?:?]
at sun.nio.ch.ServerSocketChannelImpl.accept(ServerSocketChannelImpl.java:285) ~[?:?]
at org.eclipse.jetty.server.ServerConnector.accept(ServerConnector.java:385) ~[bundleFile:9.4.20.v20190813]
at org.eclipse.jetty.server.AbstractConnector$Acceptor.run(AbstractConnector.java:664) [bundleFile:9.4.20.v20190813]
at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:782) [bundleFile:9.4.20.v20190813]
at org.eclipse.jetty.util.thread.QueuedThreadPool$Runner.run(QueuedThreadPool.java:918) [bundleFile:9.4.20.v20190813]
at java.lang.Thread.run(Thread.java:834) [?:?]