00001 /* Licensed to the Apache Software Foundation (ASF) under one or more 00002 * contributor license agreements. See the NOTICE file distributed with 00003 * this work for additional information regarding copyright ownership. 00004 * The ASF licenses this file to You under the Apache License, Version 2.0 00005 * (the "License"); you may not use this file except in compliance with 00006 * the License. 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 00025 #ifndef APACHE_MPM_DEFAULT_H 00026 #define APACHE_MPM_DEFAULT_H 00027 00028 /* Number of servers to spawn off by default --- also, if fewer than 00029 * this free when the caretaker checks, it will spawn more. 00030 */ 00031 #ifndef DEFAULT_START_DAEMON 00032 #define DEFAULT_START_DAEMON 3 00033 #endif 00034 00035 /* Maximum number of *free* server processes --- more than this, and 00036 * they will die off. 00037 */ 00038 00039 #ifndef DEFAULT_MAX_FREE_DAEMON 00040 #define DEFAULT_MAX_FREE_DAEMON 10 00041 #endif 00042 00043 /* Minimum --- fewer than this, and more will be created */ 00044 00045 #ifndef DEFAULT_MIN_FREE_DAEMON 00046 #define DEFAULT_MIN_FREE_DAEMON 3 00047 #endif 00048 00049 #ifndef DEFAULT_THREADS_PER_CHILD 00050 #define DEFAULT_THREADS_PER_CHILD 25 00051 #endif 00052 00053 /* File used for accept locking, when we use a file */ 00054 #ifndef DEFAULT_LOCKFILE 00055 #define DEFAULT_LOCKFILE DEFAULT_REL_RUNTIMEDIR "/accept.lock" 00056 #endif 00057 00058 /* Where the main/parent process's pid is logged */ 00059 #ifndef DEFAULT_PIDLOG 00060 #define DEFAULT_PIDLOG DEFAULT_REL_RUNTIMEDIR "/httpd.pid" 00061 #endif 00062 00063 /* 00064 * Interval, in microseconds, between scoreboard maintenance. 00065 */ 00066 #ifndef SCOREBOARD_MAINTENANCE_INTERVAL 00067 #define SCOREBOARD_MAINTENANCE_INTERVAL 1000000 00068 #endif 00069 00070 /* Number of requests to try to handle in a single process. If <= 0, 00071 * the children don't die off. 00072 */ 00073 #ifndef DEFAULT_MAX_REQUESTS_PER_CHILD 00074 #define DEFAULT_MAX_REQUESTS_PER_CHILD 10000 00075 #endif 00076 00077 #endif /* AP_MPM_DEFAULT_H */ 00078