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 processes to spawn off by default 00029 */ 00030 #ifndef DEFAULT_START_DAEMON 00031 #define DEFAULT_START_DAEMON 2 00032 #endif 00033 00034 /* Maximum number of *free* server threads --- more than this, and 00035 * they will die off. 00036 */ 00037 00038 #ifndef DEFAULT_MAX_SPARE_THREAD 00039 #define DEFAULT_MAX_SPARE_THREAD 10 00040 #endif 00041 00042 /* Minimum --- fewer than this, and more will be created */ 00043 00044 #ifndef DEFAULT_MIN_SPARE_THREAD 00045 #define DEFAULT_MIN_SPARE_THREAD 5 00046 #endif 00047 00048 /* Where the main/parent process's pid is logged */ 00049 #ifndef DEFAULT_PIDLOG 00050 #define DEFAULT_PIDLOG DEFAULT_REL_RUNTIMEDIR "/httpd.pid" 00051 #endif 00052 00053 /* 00054 * Interval, in microseconds, between scoreboard maintenance. 00055 */ 00056 #ifndef SCOREBOARD_MAINTENANCE_INTERVAL 00057 #define SCOREBOARD_MAINTENANCE_INTERVAL 1000000 00058 #endif 00059 00060 /* Number of requests to try to handle in a single process. If <= 0, 00061 * the children don't die off. 00062 */ 00063 #ifndef DEFAULT_MAX_REQUESTS_PER_CHILD 00064 #define DEFAULT_MAX_REQUESTS_PER_CHILD 10000 00065 #endif 00066 00067 #endif /* AP_MPM_DEFAULT_H */ 00068