Grokking Operating Systems and Networking for Backend Engineers
0% completed
File Descriptors and Their Limits
Checkout had been running for a few hours when every new order began to fail. The application log held a single repeated line: OSError: [Errno 24] Too many open files. The server had free memory, an idle CPU, and plenty of disk space, and a restart made the problem go away for the rest of the day.
Nothing on the machine had run out except a small per-process number that most engineers never look at. Each process may hold only a limited count of open files at once, and on Linux almost everything a service uses counts as an open file, including its network connections.
.....
.....
.....
Like the course? Get enrolled and start learning!
Reading Progress
0%