nginx resource_error ai_generated true

Too many open files

ID: nginx/open-file-limit

Also available as: JSON · Markdown
82%Fix Rate
86%Confidence
3Evidence
2023-01-01First Seen

Version Compatibility

VersionStatusIntroducedDeprecatedNotes
1 active

Root Cause

File descriptor limit reached.

generic

Workarounds

  1. 90% success Increase both OS ulimit and worker_rlimit_nofile
    ulimit -n 65536 + worker_rlimit_nofile 65536
  2. 88% success Set worker_connections to match: events { worker_connections 16384; }

Dead Ends

Common approaches that don't work:

  1. Set worker_rlimit_nofile without OS limit 85% fail

    Nginx cannot exceed OS ulimit

  2. Reduce worker_connections drastically 78% fail

    Cannot handle traffic