From: Jeff Trawick Date: Thu, 22 Feb 2001 18:54:49 +0000 (+0000) Subject: Back down the default number of initial threads created with X-Git-Tag: 2.0.12~24 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0a0fb4c87bc0a62c28edcfcd2a87b7060dfc7e29;p=thirdparty%2Fapache%2Fhttpd.git Back down the default number of initial threads created with the threaded Unix MPM. Tweak the sample configuration files to reflect the default settings. git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@88278 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/docs/conf/highperformance-std.conf b/docs/conf/highperformance-std.conf index 5254062f2b5..aa707699df8 100755 --- a/docs/conf/highperformance-std.conf +++ b/docs/conf/highperformance-std.conf @@ -28,10 +28,10 @@ MaxSpareServers 10 MaxClients 8 -StartServers 1 +StartServers 3 MinSpareThreads 5 MaxSpareThreads 10 -ThreadsPerChild 20 +ThreadsPerChild 25 # Assume no memory leaks at all diff --git a/docs/conf/httpd-std.conf b/docs/conf/httpd-std.conf index ac6ddc077f9..561e7c4a14f 100644 --- a/docs/conf/httpd-std.conf +++ b/docs/conf/httpd-std.conf @@ -126,11 +126,11 @@ MaxRequestsPerChild 0 # ThreadsPerChild ...... constant number of worker threads in each server process # MaxRequestsPerChild .. maximum number of requests a server process serves -StartServers 5 +StartServers 3 MaxClients 8 MinSpareThreads 5 MaxSpareThreads 10 -ThreadsPerChild 20 +ThreadsPerChild 25 MaxRequestsPerChild 0 diff --git a/server/mpm/threaded/mpm_default.h b/server/mpm/threaded/mpm_default.h index c9f2aa476ee..84c1304bfa8 100644 --- a/server/mpm/threaded/mpm_default.h +++ b/server/mpm/threaded/mpm_default.h @@ -66,7 +66,7 @@ * this free when the caretaker checks, it will spawn more. */ #ifndef DEFAULT_START_DAEMON -#define DEFAULT_START_DAEMON 5 +#define DEFAULT_START_DAEMON 3 #endif /* Maximum number of *free* server processes --- more than this, and @@ -80,7 +80,7 @@ /* Minimum --- fewer than this, and more will be created */ #ifndef DEFAULT_MIN_FREE_DAEMON -#define DEFAULT_MIN_FREE_DAEMON 5 +#define DEFAULT_MIN_FREE_DAEMON 3 #endif /* Limit on the total --- clients will be locked out if more servers than @@ -119,7 +119,7 @@ #define DEFAULT_THREADS_PER_CHILD 1 #endif #ifndef DEFAULT_THREADS_PER_CHILD -#define DEFAULT_THREADS_PER_CHILD 50 +#define DEFAULT_THREADS_PER_CHILD 25 #endif /* File used for accept locking, when we use a file */