diff options
author | Brian Pane <brianp@apache.org> | 2002-07-15 01:18:45 +0200 |
---|---|---|
committer | Brian Pane <brianp@apache.org> | 2002-07-15 01:18:45 +0200 |
commit | 86fa777f8db9e219818d52dba3dc144b7f769235 (patch) | |
tree | 38d8084b770d51c339752e72c8c1c55eedf14015 /support | |
parent | Streamline the handling of C-L values in the common case by using (diff) | |
download | apache2-86fa777f8db9e219818d52dba3dc144b7f769235.tar.xz apache2-86fa777f8db9e219818d52dba3dc144b7f769235.zip |
Increase the per-process file descriptor limit in apachectl
for the benefit of people running multithreaded MPMs or lots
of vhosts
git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@96053 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'support')
-rw-r--r-- | support/apachectl.in | 6 | ||||
-rw-r--r-- | support/config.m4 | 6 |
2 files changed, 12 insertions, 0 deletions
diff --git a/support/apachectl.in b/support/apachectl.in index 91f1a6fe10..356ca3c326 100644 --- a/support/apachectl.in +++ b/support/apachectl.in @@ -44,9 +44,15 @@ LYNX="lynx -dump" # have one, then status and fullstatus will not work. STATUSURL="http://localhost:@PORT@/server-status" # +# the command to increase the limit on open file descriptors +ULIMIT_MAX_FILES="@APACHECTL_ULIMIT@" # -------------------- -------------------- # |||||||||||||||||||| END CONFIGURATION SECTION |||||||||||||||||||| +if [ "x$ULIMIT_MAX_FILES" != "x" ] ; then + $ULIMIT_MAX_FILES +fi + ERROR=0 if [ "x$ARGV" = "x" ] ; then ARGV="-h" diff --git a/support/config.m4 b/support/config.m4 index 5dd691f89e..ad52a8c03c 100644 --- a/support/config.m4 +++ b/support/config.m4 @@ -81,3 +81,9 @@ fi ]) APACHE_SUBST(checkgid_LTFLAGS) +if TMP_ULIMIT=`ulimit -H -n` && ulimit -S -n $TMP_ULIMIT ; then + APACHECTL_ULIMIT="ulimit -S -n \`ulimit -H -n\`" +else + APACHECTL_ULIMIT="" +fi +APACHE_SUBST(APACHECTL_ULIMIT) |