Server Crash - "isc_socket_create: fcntl/reserved: Too many open files" [Howto Fix]

A Debian has been crashed and I should found how it happened.

Memory, Swap and Harddisk wasn't full, but the Server was unreachable, no ssh, ftp, http, ping...

After a hardware reset I have analysed the log files.

The crash was 22:45 offline and I want to analyse log entries between 22:40 and 22:50 and greped them


cat syslog.2 |grep '22:4'
...
Apr 2 22:41:12 USER named[3493]: isc_socket_create: fcntl/reserved: Too many open files
Apr 2 22:41:12 USER named[3493]: isc_socket_create: fcntl/reserved: Too many open files
Apr 2 22:41:12 USER named[3493]: isc_socket_create: fcntl/reserved: Too many open files
Apr 2 22:41:12 USER named[3493]: isc_socket_create: fcntl/reserved: Too many open files
...

and seen a lot of the time the same error. The server has tried to open files, but couldn't and crashed.

number of the max open files was 1024


USER:/var/log# ulimit -a
core file size (blocks, -c) 0
data seg size (kbytes, -d) unlimited
scheduling priority (-e) 0
file size (blocks, -f) unlimited
pending signals (-i) 73728
max locked memory (kbytes, -l) 32
max memory size (kbytes, -m) unlimited
open files (-n) 1024
pipe size (512 bytes, -p) 8
POSIX message queues (bytes, -q) 819200
real-time priority (-r) 0
stack size (kbytes, -s) 8192
cpu time (seconds, -t) unlimited
max user processes (-u) 73728
virtual memory (kbytes, -v) unlimited
file locks (-x) unlimited

I've changed the value of max open files to 8192 with

ulimit -n 8192

and it works very well

Comments

Post new comment

The content of this field is kept private and will not be shown publicly.
  • Use <pre> all your html php come here </pre> for your code
  • Allowed HTML tags: <a> <b> <pre> <h1> <h2> <h3> <h4> <h5> <h6> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd> <div> <style><img> <br> <blockquote>
  • Lines and paragraphs break automatically.
  • You may insert videos with [video:URL]

More information about formatting options

CAPTCHA
This question is for testing whether you are a human visitor and to prevent automated spam submissions.
Image CAPTCHA
Enter the characters shown in the image.

CafeWebmaster.com(CW) is a free online community for webdevelopers and beginners. Anybody can share their code, articles, tips, tutorials, code-examples or other webdesign related material on the site. Newbies can submit their questions and reply to existing questions. CW does not guarantee or warrant reliability of code, data and information published on the site. Use the site on your own risk. The site takes no responsibility of direct or indirect loss or any kind of harm to its users. The site also doesn't take responsibility of infected files or source code with any kind of infection or viruses, worms, spywares, malwares, trojan horses. CW reserves the right to edit, move, or delete any of content for any reason.