One, Apache three kinds of MPM introductionThe Apache 2.X supports a plug-in parallel processing module called a multi-Path processing module (MPM). When compiling Apache, you have to choose only one mpm, and there are several different MPM options for Unix-like systems that can affect the speed and scalability of Apac
1. Introduction to multi-channel processing module mpm
The Apache HTTP server is designed as a powerful and flexible web server that can work on many platforms and environments. Different platforms and environments often require different features, or may achieve the same features in different ways, the most efficient. Apache uses modular design to adapt to various environments. This design allows the website administrator to select the server feature
Article Source: http://hi.baidu.com/top2top/blog/item/0bea951600a16050f2de322b.html apache2.0 prefork and worker module Performance Tuning
The performance improvement of Apache 2.0 is the most attractive. On UNIX systems that support POSIX Threads, Apache can use different MPM to run in a mix of multi-process and multi-thread modes to enhance the scalability of some configurations. Compared with Apache 1.3, version 2.0 has made a lot of Optim
compile the installation process:# Tar XF httpd-2.4.10.tar.bz2# CD httpd-2.4.10#./configure--prefix=/usr/local/apache--sysconfdir=/etc/httpd--enable-so--enable-ssl--enable-cgi-- Enable-rewrite--with-zlib--with-pcre--with-apr=/usr/local/apr--with-apr-util=/usr/local/apr-util-- Enable-modules=most--enable-mpms-shared=all--with-mpm=event# Make make installParameter description:--prefix=/usr/local/apache Installation Path--SYSCONFDIR=/ETC/HTTPD configur
Apache 2.x has several concurrent processing modules, which must be specified through-with-MPM = xxx during compilation. The common concurrent processing modes are prefork and worker. The prefork mode is old, with pure process concurrency and no threads. The processing method is the same as apache1.x. It is applicable to servers without a thread library or do not want to use threads; worker is a multi-process and multi-thread mode. In worker mode, the
first, compile and installApache1.Environment Preparation:2.apache2.4.9+new Featuresapache-2.4+ Some of the new features (see https://httpd.apache.org/docs/2.4/zh-cn/new_features_2_4.html)1. MPM that can be loaded at run timeMany MPM can now be built as loadable modules at compile time. The selected MPM can be configured with the loadmodule instruction at run t
To improve HTTP's "'keep alive" problem, Apache introduced the MPM (Multi-processing modules, multi-channel processing module) http://httpd.apache.org/docs/current/mpm.html in version 2.0
This article describes the basic working principles and application limitations of MPM (Multi-processing modules.Run the following code:$./Configure -- help | grep mpmShown as follows:-- With-
Check_mk page error handling method solve this problem in Ubuntu is very simple, is to install apache2-mpm-prefork, this is the way each request uses a process independently. [Plain] root @ icinga:/etc/check_mk # apt-getinstallapache2-mpm-preforkReadi... check_mk page error handling method solve this problem in Ubuntu is very simple, is to install apache2-mpm-pre
httpd-2.4 requires a newer version of APR and Apr-util, so it needs to be upgraded beforehand. There are two ways to upgrade, one is to compile the installation through source code, and the other is to upgrade the RPM package directly.Here you choose to use the source code to compile the way1. Solve the dependency relationshipYumgroupinstall-y "Development Tools" "Server platformdevelopment"Yuminstall-y Pcre-develDownload packageapr-1.5.0.tar.bz2apr-util-1.5.3.tar.bz2httpd-2.4.25.tar.bz2(1) Comp
: Record Separator1f = u + 001f: Unit Separator20 = u+ 0020: Space21 = u + 0021: Exclamation mark22 = u+ 0022: Quotation Mark23 = u+ 0023: number sign24 = u + 0024: Dollar sign25 = u + 0025: percent sign26 = u+ 0026: ampersand27 = u + 0027: apostrophe28 = u+ 0028: left parenthesis29 = u+ 0029: Right parenthesis2a = u + 002a: Asterisk2b = u + 002b: plus sign2c = u + 002c: comma2d = u + 002d: hyphen-minus2e = u + 002e: Full Stop2f = u + 002f: solidus30 = u + 0030: digit zero31 = u + 0031: digit on
Article Title: Making Apache websites faster. Linux is a technology channel of the IT lab in China. Includes basic categories such as desktop applications, Linux system management, kernel research, embedded systems, and open source.
The performance improvement of Apache 2.0 is the most attractive. on Unix systems that support POSIX Threads, Apache can use different MPM to run in a mix of multi-process and multi-thread modes to enhance the scalability
needs a newer version of apr and apr-util, so it needs to be upgraded in advance.
There are two ways to upgrade: One is through source code compilation and installation, and the other is to directly upgrade the rpm package.
--> Here we select to compile the source code.
1). Install the pcre-devel package (Development Kit)-> the httpd-2.4.9 compilation process also depends on the pcre-devel package, needs to be installed in advance, this software package system CD comes:
2. Install apr and apr
Apt-* view, install, delete, and update packages. 1. apt-cachesearch: SearchRepositoryUsingPackageNameapt-cachesearch ^ package name $ search for the package name in the Repo, and search for Apache2 as an example $ apt-cachesearch ^ apache
Apt-* view, install, delete, and update packages.
1. apt-cache search: Search Repository Using Package Name
Apt-cache search ^Package name$
Search for the package name in the Repo. Take Apache 2 as an example.
$ Apt-cache search ^ apache2 $
Apache2-Apache H
them of the need to code Special-case CO Nditions to work around or take advantage of platform-specific deficiencies or features.(3) The httpd-2.4.4 compilation process also relies on the Pcre-devel software package, which needs to be installed beforehand. This package system CD comes with it, so find and install it.2. Compile and install httpd-2.4.4First download httpd-2.4.4 to local. Then execute the following command to compile the installation process:#tarxfhttpd-2.4.4.tar.bz2#cdhttpd-2.4.4
--->pcre-devel provides a regular pattern matching library, httpd only to provide a httpd startup script template and delete it after use.2-2-3: Compile and install Apache:# Tar XF httpd-2.4.27.tar.bz2# CD httpd-2.4.27#./configure--prefix=/usr/local/apache--sysconfdir=/etc/httpd24--enable-so--enable-ssl--enable-cgi-- Enable-rewrite--with-zlib--with-pcre--with-apr=/usr/local/apr--with-apr-util=/usr/local/apr-util-- Enable-modules=most--enable-mpms-shared=all--with-
install Pcre-devel lets applications support regular expression extension libraries1. Download the package:650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M00/74/1C/wKiom1YT6wrBgunmAAEH2y-eRb8794.jpg "title=" 1.png " alt= "Wkiom1yt6wrbgunmaaeh2y-erb8794.jpg"/>(1) Compile and install Apr# Tar XF apr-1.5.0.tar.bz2# CD apr-1.5.0#./configure--PREFIX=/USR/LOCAL/APR# Make make install(2) Compile and install Apr-util# Tar XF apr-util-1.5.3.tar.bz2# CD apr-util-1.5.3#./configure--prefix=/usr/lo
The httpd_mpm.conf file is in the \ conf \ extra file of your apache installation, and is still in the apache httpd. conf # Include conf/extra/httpd-mpm.conf before # Oh.
During configuration and compilation, Apache can select the desired MPM module and use the./configure -- with-mpm = MPM command. We mainly know the two MPM
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.