an-tao / trantor

a non-blocking I/O tcp network lib based on c++14/17
Other
390 stars 133 forks source link

`Acceptor::readCallback` fatal errors #350

Open Mis1eader-dev opened 2 weeks ago

Mis1eader-dev commented 2 weeks ago

A backend running on Drogon for 19 hours started not responding to any requests, checking the console logs I can see this:

20240827 13:14:10.048660 UTC 93159 FATAL Too many open files (errno=24) Accpetor::readCallback - Acceptor.cc:86

Reading the code of Acceptor, it seems it is unable to read from the socket?

After restarting the Drogon backend, it went back to normal.

an-tao commented 2 weeks ago

This shows that the number of concurrency exceeds the upper limit of open file descriptors for the process. You should increase this upper limit via kernel parameters etc.

Mis1eader-dev commented 2 weeks ago

Thank you for the explanation, shall we have this as an FAQ?