Glossary

File descriptors

What is a file descriptor?

In short

A file descriptor is a number a process uses to refer to an open file, socket or pipe. Linux limits how many each process, and the whole system, may hold open.

Why it matters

Busy web servers and databases open one per connection. At the limit, new connections fail with “Too many open files”, which looks like a random outage. A count that only ever grows usually means a leak in the app.

How to check it on Linux

System-wide open descriptors (allocated, unused, max) and one process’s limit:

cat /proc/sys/fs/file-nr && cat /proc/<pid>/limits | grep "open files"

What Opservo does about it

The health score flags a server using more than 80% of its system-wide file-descriptor limit. The Opservo Health Standard

File descriptors, answered

What is a file descriptor?+

A file descriptor is a number a process uses to refer to an open file, socket or pipe. Linux limits how many each process, and the whole system, may hold open.

How do I check a file descriptor on Linux?+

System-wide open descriptors (allocated, unused, max) and one process’s limit: cat /proc/sys/fs/file-nr && cat /proc/<pid>/limits | grep "open files"

How does Opservo handle a file descriptor?+

The health score flags a server using more than 80% of its system-wide file-descriptor limit.

Related terms

Opservo watches all of this on every server and explains problems in plain English. Free for 2 servers.