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
Changes with Apache 2.0.40
+ *) Increase the limit on file descriptors per process in apachectl.
+ [Brian Pane]
+
*) Fix a dependency error when building ApacheMonitor, so that Win32
and MSVC now trust that the project is current (when it is).
[James Cox <imajes@php.net>]
# 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"
])
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)