Follow Techotopia on Twitter

On-line Guides
All Guides
eBook Store
iOS / Android
Linux for Beginners
Office Productivity
Linux Installation
Linux Security
Linux Utilities
Linux Virtualization
Linux Kernel
System/Network Admin
Programming
Scripting Languages
Development Tools
Web Development
GUI Toolkits/Desktop
Databases
Mail Systems
openSolaris
Eclipse Documentation
Techotopia.com
Virtuatopia.com
Answertopia.com

How To Guides
Virtualization
General System Admin
Linux Security
Linux Filesystems
Web Servers
Graphics & Desktop
PC Hardware
Windows
Problem Solutions
Privacy Policy

  




 

 

Postfix Documentation
Previous Page Home Next Page

Tuning the number of open files or sockets

When Postfix opens too many files or sockets, processes will abort with fatal errors, and the system may log "file table full" errors.

  • Reduce the number of processes as described under "Tuning the number of Postfix processes" above. Fewer processes need fewer open files and sockets.

  • Configure the kernel for more open files and sockets. The details are extremely system dependent and change with the operating system version. Be sure to verify the following information with your system tuning guide:

    • Some FreeBSD kernel parameters can be specified in /boot/loader.conf, and some can be changed with sysctl commands. Which is which depends on the version.

      kern.ipc.maxsockets="5000"
      kern.ipc.nmbclusters="65536"
      kern.maxproc="2048"
      kern.maxfiles="16384"
      kern.maxfilesperproc="16384"
      
    • Linux kernel parameters can be specified in /etc/sysctl.conf and can also be changed with sysctl commands:

      fs.file-max=16384
      kernel.threads-max=2048
      
    • Solaris kernel parameters can be specified in /etc/system, as described in the Solaris FAQ entry titled "How can I increase the number of file descriptors per process?"

      * set hard limit on file descriptors
      set rlim_fd_max = 4096
      * set soft limit on file descriptors
      set rlim_fd_cur = 1024
      
Postfix Documentation
Previous Page Home Next Page