EMFILE

The error code meaning a process has hit its limit on open file descriptors, printed as "too many open files".

Once the limit is reached every new file or connection fails, so a descriptor leak soon takes a server down.

In more detail

It almost always means files or sockets are being opened and not closed. Raising the limit only postpones the crash; the real fix is closing every handle.

Related terms

Taught in

References