Apache HTTPD
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
25#ifndef APACHE_MPM_DEFAULT_H
26#define APACHE_MPM_DEFAULT_H
27
28/* Limit on the threads per process. Clients will be locked out if more than
29 * this * HARD_SERVER_LIMIT are needed.
30 *
31 * We keep this for one reason it keeps the size of the scoreboard file small
32 * enough that we can read the whole thing without worrying too much about
33 * the overhead.
34 */
35#ifndef HARD_THREAD_LIMIT
36#define HARD_THREAD_LIMIT 2048
37#endif
38
39#ifndef DEFAULT_THREADS_PER_CHILD
40#define DEFAULT_THREADS_PER_CHILD 50
41#endif
42
43/* Number of threads to spawn off by default --- also, if fewer than
44 * this free when the caretaker checks, it will spawn more.
45 */
46#ifndef DEFAULT_START_THREADS
47#define DEFAULT_START_THREADS DEFAULT_THREADS_PER_CHILD
48#endif
49
50/* Maximum number of *free* threads --- more than this, and
51 * they will die off.
52 */
53
54#ifndef DEFAULT_MAX_FREE_THREADS
55#define DEFAULT_MAX_FREE_THREADS 100
56#endif
57
58/* Minimum --- fewer than this, and more will be created */
59
60#ifndef DEFAULT_MIN_FREE_THREADS
61#define DEFAULT_MIN_FREE_THREADS 10
62#endif
63
64/*
65 * Interval, in microseconds, between scoreboard maintenance.
66 */
67#ifndef SCOREBOARD_MAINTENANCE_INTERVAL
68#define SCOREBOARD_MAINTENANCE_INTERVAL 1000000
69#endif
70
71/* Default stack size allocated for each worker thread.
72 */
73#ifndef DEFAULT_THREAD_STACKSIZE
74#define DEFAULT_THREAD_STACKSIZE 65536
75#endif
76
77#endif /* AP_MPM_DEFAULT_H */