An in-depth analysis found that the cause is the problem:
When a client tries to connect to TCP, even if the server does not currently receive a connection, the connection will fail. This will happen if the server called the listen function and it will continue to accept connections until the lag limit is reached.
But if the application process exceeds the limit of the maximum file descriptors that it can use, then when server calls are received, then he realizes that there are no file descriptors available for the socket and that the call and the TCP connection sending FIN to the other side cannot be accepted.
I just post this output here. I still leave the accepted answer, as with Hubby.
Thanks to everyone who answered this question.
source share