Apache2
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
mpm_default.h
Go to the documentation of this file.
1 /* Licensed to the Apache Software Foundation (ASF) under one or more
2  * contributor license agreements. See the NOTICE file distributed with
3  * this work for additional information regarding copyright ownership.
4  * The ASF licenses this file to You under the Apache License, Version 2.0
5  * (the "License"); you may not use this file except in compliance with
6  * the License. You may obtain a copy of the License at
7  *
8  * http://www.apache.org/licenses/LICENSE-2.0
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an "AS IS" BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  */
16 
26 #ifndef APACHE_MPM_DEFAULT_H
27 #define APACHE_MPM_DEFAULT_H
28 
29 /* Default limit on the maximum setting of the ThreadsPerChild configuration
30  * directive. This limit can be overridden with the ThreadLimit directive.
31  * This limit directly influences the amount of shared storage that is allocated
32  * for the scoreboard. DEFAULT_THREAD_LIMIT represents a good compromise
33  * between scoreboard size and the ability of the server to handle the most
34  * common installation requirements.
35  */
36 #ifndef DEFAULT_THREAD_LIMIT
37 #define DEFAULT_THREAD_LIMIT 1920
38 #endif
39 
40 /* The ThreadLimit directive can be used to override the DEFAULT_THREAD_LIMIT.
41  * ThreadLimit cannot be tuned larger than MAX_THREAD_LIMIT.
42  * This is a sort of compile-time limit to help catch typos.
43  */
44 #ifndef MAX_THREAD_LIMIT
45 #define MAX_THREAD_LIMIT 15000
46 #endif
47 
48 /* Number of threads started in the child process in the absence
49  * of a ThreadsPerChild configuration directive
50  */
51 #ifndef DEFAULT_THREADS_PER_CHILD
52 #define DEFAULT_THREADS_PER_CHILD 64
53 #endif
54 
55 /* Max number of child processes allowed.
56  */
57 #define HARD_SERVER_LIMIT 1
58 
59 #endif /* AP_MPM_DEFAULT_H */
60