Blame server/mpm/winnt/mpm_default.h

Packit 90a5c9
/* Licensed to the Apache Software Foundation (ASF) under one or more
Packit 90a5c9
 * contributor license agreements.  See the NOTICE file distributed with
Packit 90a5c9
 * this work for additional information regarding copyright ownership.
Packit 90a5c9
 * The ASF licenses this file to You under the Apache License, Version 2.0
Packit 90a5c9
 * (the "License"); you may not use this file except in compliance with
Packit 90a5c9
 * the License.  You may obtain a copy of the License at
Packit 90a5c9
 *
Packit 90a5c9
 *     http://www.apache.org/licenses/LICENSE-2.0
Packit 90a5c9
 *
Packit 90a5c9
 * Unless required by applicable law or agreed to in writing, software
Packit 90a5c9
 * distributed under the License is distributed on an "AS IS" BASIS,
Packit 90a5c9
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
Packit 90a5c9
 * See the License for the specific language governing permissions and
Packit 90a5c9
 * limitations under the License.
Packit 90a5c9
 */
Packit 90a5c9
Packit 90a5c9
/**
Packit 90a5c9
 * @file  winnt/mpm_default.h
Packit 90a5c9
 * @brief win32 MPM defaults
Packit 90a5c9
 *
Packit 90a5c9
 * @defgroup APACHE_MPM_WINNT WinNT MPM
Packit 90a5c9
 * @ingroup APACHE_INTERNAL
Packit 90a5c9
 * @{
Packit 90a5c9
 */
Packit 90a5c9
Packit 90a5c9
#ifndef APACHE_MPM_DEFAULT_H
Packit 90a5c9
#define APACHE_MPM_DEFAULT_H
Packit 90a5c9
Packit 90a5c9
/* Default limit on the maximum setting of the ThreadsPerChild configuration
Packit 90a5c9
 * directive.  This limit can be overridden with the ThreadLimit directive.
Packit 90a5c9
 * This limit directly influences the amount of shared storage that is allocated
Packit 90a5c9
 * for the scoreboard. DEFAULT_THREAD_LIMIT represents a good compromise
Packit 90a5c9
 * between scoreboard size and the ability of the server to handle the most
Packit 90a5c9
 * common installation requirements.
Packit 90a5c9
 */
Packit 90a5c9
#ifndef DEFAULT_THREAD_LIMIT
Packit 90a5c9
#define DEFAULT_THREAD_LIMIT 1920
Packit 90a5c9
#endif
Packit 90a5c9
Packit 90a5c9
/* The ThreadLimit directive can be used to override the DEFAULT_THREAD_LIMIT.
Packit 90a5c9
 * ThreadLimit cannot be tuned larger than MAX_THREAD_LIMIT.
Packit 90a5c9
 * This is a sort of compile-time limit to help catch typos.
Packit 90a5c9
 */
Packit 90a5c9
#ifndef MAX_THREAD_LIMIT
Packit 90a5c9
#define MAX_THREAD_LIMIT 15000
Packit 90a5c9
#endif
Packit 90a5c9
Packit 90a5c9
/* Number of threads started in the child process in the absence
Packit 90a5c9
 * of a ThreadsPerChild configuration directive
Packit 90a5c9
 */
Packit 90a5c9
#ifndef DEFAULT_THREADS_PER_CHILD
Packit 90a5c9
#define DEFAULT_THREADS_PER_CHILD 64
Packit 90a5c9
#endif
Packit 90a5c9
Packit 90a5c9
/* Max number of child processes allowed.
Packit 90a5c9
 */
Packit 90a5c9
#define HARD_SERVER_LIMIT 1
Packit 90a5c9
Packit 90a5c9
#endif /* AP_MPM_DEFAULT_H */
Packit 90a5c9
/** @} */