00001 /* Copyright 2002-2005 The Apache Software Foundation or its licensors, as 00002 * applicable. 00003 * 00004 * Licensed under the Apache License, Version 2.0 (the "License"); 00005 * you may not use this file except in compliance with the License. 00006 * You may obtain a copy of the License at 00007 * 00008 * http://www.apache.org/licenses/LICENSE-2.0 00009 * 00010 * Unless required by applicable law or agreed to in writing, software 00011 * distributed under the License is distributed on an "AS IS" BASIS, 00012 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 00013 * See the License for the specific language governing permissions and 00014 * limitations under the License. 00015 */ 00016 00017 #ifndef APACHE_MPM_DEFAULT_H 00018 #define APACHE_MPM_DEFAULT_H 00019 00020 /* Number of servers to spawn off by default --- also, if fewer than 00021 * this free when the caretaker checks, it will spawn more. 00022 */ 00023 #ifndef DEFAULT_START_DAEMON 00024 #define DEFAULT_START_DAEMON 3 00025 #endif 00026 00027 /* Maximum number of *free* server processes --- more than this, and 00028 * they will die off. 00029 */ 00030 00031 #ifndef DEFAULT_MAX_FREE_DAEMON 00032 #define DEFAULT_MAX_FREE_DAEMON 10 00033 #endif 00034 00035 /* Minimum --- fewer than this, and more will be created */ 00036 00037 #ifndef DEFAULT_MIN_FREE_DAEMON 00038 #define DEFAULT_MIN_FREE_DAEMON 3 00039 #endif 00040 00041 #ifndef DEFAULT_THREADS_PER_CHILD 00042 #define DEFAULT_THREADS_PER_CHILD 25 00043 #endif 00044 00045 /* File used for accept locking, when we use a file */ 00046 #ifndef DEFAULT_LOCKFILE 00047 #define DEFAULT_LOCKFILE DEFAULT_REL_RUNTIMEDIR "/accept.lock" 00048 #endif 00049 00050 /* Where the main/parent process's pid is logged */ 00051 #ifndef DEFAULT_PIDLOG 00052 #define DEFAULT_PIDLOG DEFAULT_REL_RUNTIMEDIR "/httpd.pid" 00053 #endif 00054 00055 /* 00056 * Interval, in microseconds, between scoreboard maintenance. 00057 */ 00058 #ifndef SCOREBOARD_MAINTENANCE_INTERVAL 00059 #define SCOREBOARD_MAINTENANCE_INTERVAL 1000000 00060 #endif 00061 00062 /* Number of requests to try to handle in a single process. If <= 0, 00063 * the children don't die off. 00064 */ 00065 #ifndef DEFAULT_MAX_REQUESTS_PER_CHILD 00066 #define DEFAULT_MAX_REQUESTS_PER_CHILD 10000 00067 #endif 00068 00069 #endif /* AP_MPM_DEFAULT_H */