2016/10/05 04:50:09 server.go:2317: http: Accept error: accept tcp [::]:8082: accept4: too many open files; retrying in 1s
2016/10/05 04:50:10 server.go:2317: http: Accept error: accept tcp [::]:8082: accept4: too many open files; retrying in 1s
2016/10/05 04:50:11 server.go:2317: http: Accept error: accept tcp [::]:8082: accept4: too many open files; retrying in 1s
2016/10/05 04:50:12 server.go:2317: http: Accept error: accept tcp [::]:8082: accept4: too many open files; retrying in 1s
2016/10/05 04:50:13 server.go:2317: http: Accept error: accept tcp [::]:8082: accept4: too many open files; retrying in 1s
2016/10/05 04:50:14 server.go:2317: http: Accept error: accept tcp [::]:8082: accept4: too many open files; retrying in 1s
I’ve seen these logs a few times in the server (dgraph demo instance). Just wondering If we aren’t closing some connections properly. When this happens, the response time of server increases.
Could also be the http requests not closing the tcp sockets. Try to watch it and throw more and more queries and see how this increases. Because all conn.Pool stuff gets created at the beginning and just reused.
True. Also since the log says port 8082, which is the port to which the queries are sent and not the internal ones. But I tried doing curl requests in a loop (around 100000) but the fd count doesn’t change. Will try to find some other way to reproduce this.
2016/11/21 05:36:16 server.go:2317: http: Accept error: accept tcp [::]:8082: accept4: too many open files; retrying in 1s