nginx
resource_error
ai_generated
true
Too many open files
ID: nginx/open-file-limit
82%Fix Rate
86%Confidence
3Evidence
2023-01-01First Seen
Version Compatibility
| Version | Status | Introduced | Deprecated | Notes |
|---|---|---|---|---|
| 1 | active | — | — | — |
Root Cause
File descriptor limit reached.
genericWorkarounds
-
90% success Increase both OS ulimit and worker_rlimit_nofile
ulimit -n 65536 + worker_rlimit_nofile 65536
-
88% success Set worker_connections to match: events { worker_connections 16384; }
Dead Ends
Common approaches that don't work:
-
Set worker_rlimit_nofile without OS limit
85% fail
Nginx cannot exceed OS ulimit
-
Reduce worker_connections drastically
78% fail
Cannot handle traffic