Article ID: 126938, created on Sep 18, 2015, last review on Sep 18, 2015

  • Applies to:
  • Plesk Automation 11.5


How do I increase maximum number of open file descriptors for Apache?


  1. Comment out the following section in the /usr/sbin/apachectl:

    #ULIMIT_MAX_FILES="ulimit -S -n `ulimit -H -n`"
    # --------------------                              --------------------
    # ||||||||||||||||||||   END CONFIGURATION SECTION  ||||||||||||||||||||
    # Set the maximum number of file descriptors allowed per child process.
    #if [ "x$ULIMIT_MAX_FILES" != "x" ] ; then

    Set needed ULIMIT value in httpd configuration after commented section, add ulimit -n 131072 to the /usr/sbin/apachectl file:

    ulimit -n 131072

    Add needed ULIMIT value in /etc/sysconfig/httpd configuration:

    # echo 'ulimit -n 131072' >> /etc/sysconfig/httpd
    # grep -i ulimit /etc/sysconfig/httpd
    ulimit -n 131072
  2. Restart the Apache service:

    # /etc/init.d/httpd restart

Search Words

Too many open files

maximum number of open file descriptors


apache fails to start

33a70544d00d562bbc5b17762c4ed2b3 caea8340e2d186a540518d08602aa065 e0aff7830fa22f92062ee4db78133079

Email subscription for changes to this article
Save as PDF