Six modes of Apache

Source: Internet
Author: User

[[email protected]] #pwd

/application/apache/conf

[[email protected]] #cat extra/httpd-mpm.conf

#

# server-poolmanagement (MPM specific)

#

#

# Pidfile:thefile in which the server should record its process

# Identificationnumber when it starts.

#

# Note that thisis the default pidfile for most MPMs.

#

<IfModule!mpm_netware_module>

Pidfile "Logs/httpd.pid"

</IfModule>

#

# The Acceptserialization lock file must is STORED on A LOCAL DISK.

#

<IfModule!mpm_winnt_module>

<IfModule!mpm_netware_module>

LockFile "Logs/accept.lock"

</IfModule>

</IfModule>

#

# Only one of Thebelow sections'll be relevant on your

# installedhttpd. Use "Apachectl-l" Tofind out the

# ACTIVEMPM.

#

# Prefork MPM

# Startservers:number of server processes to start

# minspareservers:minimum number of server processes which is kept spare

# maxspareservers:maximum number of server processes which is kept spare

# maxclients:maximum number of server processes allowed to start

#MaxRequestsPerChild: Maximum number of requests a server process serves

<IfModulempm_prefork_module>

Startservers 5

Minspareservers 5

Maxspareservers 10

MaxClients 150

Maxrequestsperchild 0

</IfModule>

# worker MPM

# startservers:initial number of server processes to start

# maxclients:maximum number of simultaneous client connections

# minsparethreads:minimum number of worker threads which is kept spare

# maxsparethreads:maximum number of worker threads which is kept spare

# threadsperchild:constant number of worker threads in each server process

#MaxRequestsPerChild: Maximum number of requests a server process serves

<IfModulempm_worker_module>

Startservers 2

MaxClients 150

Minsparethreads 25

Maxsparethreads 75

Threadsperchild 25

Maxrequestsperchild 0

</IfModule>

# BeOS MPM

# startthreads:how Many threads do we initially spawn?

# Maxclients:max Number of threads we can have (1 thread== 1 client)

#MaxRequestsPerThread: Maximum number of requests each thread would process

<IfModulempm_beos_module>

Startthreads 10

MaxClients 50

MaxRequestsPerThread10000

</IfModule>

# NetWare MPM

# Threadstacksize:stack Size allocated for each worker thread

# Startthreads:number of worker threads launched at server startup

# minsparethreads:minimum Number of idle threads, to handle request spikes

# maxsparethreads:maximum Number of idle threads

# maxthreads:maximum Number of worker threads alive at the same time

#MaxRequestsPerChild: Maximum number ofrequests a thread serves. It is

# recommended that thedefault value of 0 is set for this

# directive Onnetware. This would allow the thread to

# continue to servicerequests indefinitely.

<IfModulempm_netware_module>

Threadstacksize 65536

Startthreads 250

Minsparethreads 25

Maxsparethreads 250

MaxThreads 1000

Maxrequestsperchild 0

Maxmemfree 100

</IfModule>

# OS/2 MPM

# Startservers:number of server processes to maintain

# minsparethreads:minimum number of idle threads per process,

# to handle request spikes

# maxsparethreads:maximum number of idle threads per process

#MaxRequestsPerChild: Maximum number of connections per server process

<IfModulempm_mpmt_os2_module>

Startservers 2

Minsparethreads 5

Maxsparethreads 10

Maxrequestsperchild 0

</IfModule>

# WinNT MPM

# threadsperchild:constant number of worker threads in the server process

#MaxRequestsPerChild: Maximum number ofrequests a server process serves

<IfModulempm_winnt_module>

Threadsperchild 150

Maxrequestsperchild 0

</IfModule>

[[Email protected]]#


This article is from "Try to be brave" blog, declined reprint!

Six modes of Apache

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.