{"id":18,"hash":"1b52cafec0ffb5f26a7b226b36ef7e853f9e31ab022acd0c7720d0c9d45a7dd8","pattern":"EMFILE: too many open files","full_message":"Error: EMFILE: too many open files, open '/path/to/file'","ecosystem":null,"package_name":null,"package_version":null,"solution":"OS file-descriptor limit exceeded.\n1. Raise ulimit: `ulimit -n 4096` (shell) or edit /etc/security/limits.conf for permanence.\n2. In Node: use `graceful-fs` (monkey-patches fs to queue when EMFILE hits).\n3. On macOS: `sudo launchctl limit maxfiles 65536 200000`.\n4. Close file handles explicitly after reading.","confidence":0.9,"source":"internal","source_url":null,"votes":19,"created_at":"2026-04-19T03:24:37.000273+00:00","updated_at":"2026-04-19T03:25:24.788402+00:00"}