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 /* Default limit on the maximum setting of the ThreadsPerChild configuration 00029 * directive. This limit can be overridden with the ThreadLimit directive. 00030 * This limit directly influences the amount of shared storage that is allocated 00031 * for the scoreboard. DEFAULT_THREAD_LIMIT represents a good compromise 00032 * between scoreboard size and the ability of the server to handle the most 00033 * common installation requirements. 00034 */ 00035 #ifndef DEFAULT_THREAD_LIMIT 00036 #define DEFAULT_THREAD_LIMIT 1920 00037 #endif 00038 00039 /* The ThreadLimit directive can be used to override the DEFAULT_THREAD_LIMIT. 00040 * ThreadLimit cannot be tuned larger than MAX_THREAD_LIMIT. 00041 * This is a sort of compile-time limit to help catch typos. 00042 */ 00043 #ifndef MAX_THREAD_LIMIT 00044 #define MAX_THREAD_LIMIT 15000 00045 #endif 00046 00047 /* Number of threads started in the child process in the absence 00048 * of a ThreadsPerChild configuration directive 00049 */ 00050 #ifndef DEFAULT_THREADS_PER_CHILD 00051 #define DEFAULT_THREADS_PER_CHILD 64 00052 #endif 00053 00054 /* Max number of child processes allowed. 00055 */ 00056 #define HARD_SERVER_LIMIT 1 00057 00058 /* Number of servers to spawn off by default 00059 */ 00060 #ifndef DEFAULT_NUM_DAEMON 00061 #define DEFAULT_NUM_DAEMON 1 00062 #endif 00063 00064 /* Check for definition of DEFAULT_REL_RUNTIMEDIR */ 00065 #ifndef DEFAULT_REL_RUNTIMEDIR 00066 #define DEFAULT_REL_RUNTIMEDIR "logs" 00067 #endif 00068 00069 /* Where the main/parent process's pid is logged */ 00070 #ifndef DEFAULT_PIDLOG 00071 #define DEFAULT_PIDLOG DEFAULT_REL_RUNTIMEDIR "/httpd.pid" 00072 #endif 00073 00074 /* 00075 * Interval, in microseconds, between scoreboard maintenance. 00076 */ 00077 #ifndef SCOREBOARD_MAINTENANCE_INTERVAL 00078 #define SCOREBOARD_MAINTENANCE_INTERVAL 1000000 00079 #endif 00080 00081 /* Number of requests to try to handle in a single process. If <= 0, 00082 * the children don't die off. 00083 */ 00084 #ifndef DEFAULT_MAX_REQUESTS_PER_CHILD 00085 #define DEFAULT_MAX_REQUESTS_PER_CHILD 0 00086 #endif 00087 00088 #endif /* AP_MPM_DEFAULT_H */ 00089