Bind Error: “max open files (3520) is smaller than max sockets (4096)”

Just notice one of the DNS server has the error message


28-Jun-2010 16:28:24.283 general: max open files (3520) is smaller than max sockets (4096)

It’s something to do with kernel setting, on FreeBSD, configure the following


shell> sysctl kern.maxfiles=4096
shell> sysctl kern.maxfilesperproc=4096

Alternatively, put the above configuration on /etc/sysctl.conf in order to configure it at start up level.

Related posts:

  1. Turn on DNS Query Log on Bind You are running a recursive DNS server and would like...
  2. FreeBSD 6.1 Performance Tuning Just a note for myself to tune FreeBSD OS for...
  3. Configure NTP Server on FreeBSD Configure a NTP time server on FreeBSD is fairly easy....
  4. OURMON Installation and Configuration on FreeBSD 7 with Multi-threading Support OURMON is popular known as open source Network Monitoring and...
  5. How to Change Hostname in Unix FreeBSD We have interesting hostname for our all our servers. Some...
  6. Cacti Spine Source Installation Error on FreeBSD Just noticed FreeBSD’s port still using old version of spine,...
  7. Retrieve CPU and Memory Information on FreeBSD Server running slow and how to check CPU/Processor and RAM/Memory...
  8. Enable SSHD on FreeBSD I believe most system admin does remote access to the...
  9. Linux/Unix Search and Replace Text from Multiple Files In Linux/Unix, for newbie to do search text from multiple...
  10. Enable SMTP Port 587 on Exim Most of the ISP block port 25 for outgoing SMTP....

Tags: , , , ,

One Response to “Bind Error: “max open files (3520) is smaller than max sockets (4096)””

  1. kaeru Says:

    “man tuning” is a useful reference for variables such as this which need some tweaking for servers.

Leave a Reply