From 36af304d16f81faffd06449ad5fcab4f232c5044 Mon Sep 17 00:00:00 2001 From: Jeff Trawick Date: Thu, 22 Feb 2001 18:54:49 +0000 Subject: [PATCH] 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 --- docs/conf/highperformance-std.conf | 4 ++-- docs/conf/httpd-std.conf | 4 ++-- server/mpm/threaded/mpm_default.h | 6 +++--- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/docs/conf/highperformance-std.conf b/docs/conf/highperformance-std.conf index 5254062f2b..aa707699df 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 ac6ddc077f..561e7c4a14 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 c9f2aa476e..84c1304bfa 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 */ -- 2.49.0