dgraph icon indicating copy to clipboard operation
dgraph copied to clipboard

Too many open files - logs in server

Open ashwin95r opened this issue 10 years ago • 2 comments

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. This happens after quite a long time since the server is started (After it receives some number of queries I think).

ashwin95r avatar Oct 07 '16 03:10 ashwin95r

We need a way to reproduce this.

manishrjain avatar Dec 19 '16 23:12 manishrjain

cdf2ff2905c22b82cd57dc1ccfa313ed5e4d7b4f should fix the bug according to the post on gophercademy

ashwin95r avatar Dec 20 '16 08:12 ashwin95r