Search code examples
centos7beanstalkd

beanstalkd - too many open files error


service beanstalkd status in centos 7

beanstalkd[1375]: /usr/bin/beanstalkd: prot.c:1919 in h_accept: accept(): Too many open files

Of I restart beanstalkd service this error comes after 5 hrs

Anyone help me to fix this issue


Solution

  • You ran out of sockets.

    This could be because:

    1) Your application opened too many sockets. You can raise this limit via ulimit or similar.

    2) You are leaking open connections. It is possible that your application is not closing requests in certain cases, causing your machine to run out of sockets. If this is the case, eventually you will hit the limit even if you raise it.

    Some more information: How do I change the number of open files limit in Linux?.