After some uptime, openhab starts printing a lot of these in the log: 2017-02-09 14:04:02.580 [WARN ] [eclipse.jetty.server.ServerConnector] - java.io.IOException: Too many open files at sun.nio.ch.ServerSocketChannelImpl.accept0(Native Method)[:1.8.0_121] at sun.nio.ch.ServerSocketChannelImpl.accept(ServerSocketChannelImpl.java:422)[:1.8.0_121] at sun.nio.ch.ServerSocketChannelImpl.accept(ServerSocketChannelImpl.java:250)[:1.8.0_121] at org.eclipse.jetty.server.ServerConnector.accept(ServerConnector.java:377)[80:org.eclipse.jetty.server:9.2.19.v20160908] at org.eclipse.jetty.server.AbstractConnector$Acceptor.run(AbstractConnector.java:500)[80:org.eclipse.jetty.server:9.2.19.v20160908] at org.eclipse.jetty.util.thread.QueuedThreadPool.runJob(QueuedThreadPool.java:635)[83:org.eclipse.jetty.util:9.2.19.v20160908] at org.eclipse.jetty.util.thread.QueuedThreadPool$3.run(QueuedThreadPool.java:555)[83:org.eclipse.jetty.util:9.2.19.v20160908] at java.lang.Thread.run(Thread.java:745)[:1.8.0_121]
Open files limit for openhab is 4096, which should be enough.
However, netstat show there’s a lot of CLOSE_WAIT connections to openhab:8080. Here a FIN is received, but the connection is not closed by openhab/jetty?
Now special activity other than a web client idling on a sitemap (Basic UI).
Same problem for me, with the same Java version (problem appeared also with previous Java versions). @mtryfoss: How do you get the CLOSE_WAIT sockets in netstat? Or are you checking the listening sockets (netstat -l)?