I am very frequently getting this error in MySQL:
OS errno 24 - Too many open files
What's the cause and what are the solutions?
You probably have a connection
leak in your application, that is why open connections
are not closed once the function
completes it's execution.
I would probably look into the application code and see where the connections
/preparedstatement
(if it's java) objects are not closed and fix it.
A quick workaround is to increase ulimit
of the server (explained here) which would increase number of open file descriptors (i.e. connections
). However, if you have a connection leak, you will encounter this error again, at later stages.
I faced the same problem and found a solution on another stackoverflow-question.
By running the following snippet with Bash:
ulimit -n 30000
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With