Linux Error Code EMFILE (24)
The process reached its open file descriptor limit.
The process reached its open file descriptor limit.
| Code | EMFILE (24) |
| Product | Linux |
| Company / origin | Linux community · International open source |
| Category | Operating Systems |
| Platform / versions | Linux kernel 4.x and later · Architecture-dependent errno numbering |
| Severity | error |
| Official source | Linux man-pages: errno(3) ↗ |
| Last verified | 2026-11-08 |
What does Linux error EMFILE (24) mean?
EMFILE (errno 24) means the process cannot open another file descriptor because it hit the per-process limit. It often appears in servers that leak connections or have a limit that is too low for the workload.
Common causes
- The process is leaking file descriptors or sockets.
- ulimit -n is lower than the workload requires.
- A connection pool or file watcher is opening more handles than expected.
How to fix it
- Step 1
Check the process limit with ulimit -n and /proc/<pid>/limits.
- Step 2
Find leaked descriptors with lsof -p <pid> and fix the leak.
- Step 3
Raise the limit in systemd or the shell only after estimating the real requirement.
When to escalate
Related codes
| Code | Name | What it means |
|---|---|---|
EACCES (13) | Permission Denied | The process does not have permission to access the file or directory. |
EADDRINUSE (98) | Address Already in Use | The network address or port is already bound. |
EBUSY (16) | Device or Resource Busy | The resource is busy and cannot be used or released. |
ECONNREFUSED (111) | Connection Refused | The remote host actively refused the connection. |
EEXIST (17) | File Exists | The file or directory already exists. |
Source & verification
This page was checked against Linux man-pages: errno(3) on 2026-11-08. The code, product, and platform fields are kept separate from the explanation so corrections can be made without changing the URL.
Open Error Codes is independent and not affiliated with Linux community. Always confirm destructive or security-sensitive steps with the official documentation.