Reputation: 13
I've got an error on OS X:
2020/10/11 02:45:00 [alert] 38577#0: *10290 socket() failed (24: Too many open files) while connecting to upstream, client: 127.0.0.1, server: 127.0.0.1, request: "GET /favicon.ico HTTP/1.0", upstream: "http://127.0.0.1:9000/favicon.ico", host: "127.0.0.1:9000", referrer: "http://127.0.0.1:8008/"
Tried to modify ulimit, got worker_rlimit_nofile 10000, project has like 1500-1600 files, but does it matter and what to do?
Upvotes: 1
Views: 1215
Reputation: 1146
In my case worked just adding this to the config file:
worker_rlimit_nofile 40000;
events {
worker_connections 4096;
}
Upvotes: 0