From: Jeff Trawick Date: Thu, 12 Nov 2009 23:27:41 +0000 (+0000) Subject: update MPM doc to cover new MPM defaults and MPMs as DSO modules X-Git-Tag: 2.3.4~57 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=9c6f5f132042aa5abffaca87d1c0026be9cef233;p=thirdparty%2Fapache%2Fhttpd.git update MPM doc to cover new MPM defaults and MPMs as DSO modules git-svn-id: https://svn.apache.org/repos/asf/httpd/httpd/trunk@835638 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/docs/manual/mpm.xml b/docs/manual/mpm.xml index 1043894c749..e30a16d1d45 100644 --- a/docs/manual/mpm.xml +++ b/docs/manual/mpm.xml @@ -75,37 +75,60 @@ how they are used by the Apache HTTP Server.

-
Choosing an MPM - -

MPMs must be chosen during configuration, and compiled into - the server. Compilers are capable of optimizing a lot of - functions if threads are used, but only if they know that - threads are being used.

- -

To actually choose the desired MPM, use the argument - --with-mpm=NAME with the - configure script. NAME is the name of the - desired MPM.

- -

Once the server has been compiled, it is possible to - determine which MPM was chosen by using ./httpd - -l. This command will list every module that is compiled - into the server, including the MPM.

-
-
MPM Defaults

The following table lists the default MPMs for various operating systems. This will be the MPM selected if you do not make another choice at compile-time.

- +
- +
Netwarempm_netware
OS/2mpmt_os2
Unixprefork
Unixprefork, worker, or + event, depending on platform capabilities
Windowsmpm_winnt
+
Building an MPM as a static module + +

MPMs can be built as static modules on all platforms. A single MPM + is chosen at build time and linked into the server. The server must + be rebuilt in order to change the MPM.

+ +

To override the default MPM choice, use the + --with-mpm=NAME option of the + configure script. NAME is the name of the + desired MPM.

+ +

Once the server has been compiled, it is possible to determine which MPM + was chosen by using ./httpd -l. This command will list every + module that is compiled into the server, including the MPM.

+ +
+ +
Building an MPM as a DSO module + +

On Unix and similar platforms, MPMs can be built as DSO modules and + dynamically loaded into the server in the same manner as other DSO + modules. Building MPMs as DSO modules allows the MPM to be changed by + updating the LoadModule directive + for the MPM instead of by rebuilding the server.

+ +

This feature is enabled using the + --enable-mpms-shared option of the configure + script. + With argument all, all possible MPMs for the platform + will be installed. Alternately, a list of MPMs can be specified as the + argument.

+ +

The default MPM, either selected automatically or specified with the + --with-mpm option of the configure + script, will be loaded in the generated server configuration file. Edit the + LoadModule directive to select a + different MPM.

+ +
+