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,
Apache is the most widely used and stable open-source server software for today's Web servers. There are many working modes of Apache. Currently, there are two main modes: prefork mode and worker mode.
I. Two modes
Prefork mode:
Prefork is the
Objective
1 · Recent articles are all about Apache security and optimization, these are important to the server, mastering these not only improves the security of the server, but also makes the performance of the server greatly
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
One or two modesPrefork mode:Prefork is the default (default) MPM on UNIX platforms, using multiple child processes, with only one thread per child process. Each process can only maintain one connection at a certain time, and is efficient, but has a
To put it simply:1. There is no thread in prefork. It is a multi-process model. A process processes a connection. It is stable and responds quickly. The disadvantage is that memory consumption is very high when the number of connections is large.2.
Prefork mode
This multi-channel module (MPM) implements a non-threading, pre-built Web server that works like Apache 1.3. It is suitable for systems that do not have thread-safe libraries and need to avoid thread-compatibility issues. It is the
Prefork ModeThis multi-path processing module (MPM) implements a non-threaded, pre-derived Web server, which works in a way similar to Apache 1.3. It is suitable for systems that do not have a thread security library and need to avoid thread
Prefork modeMulti-processThis multi-path processing module (MPM) implements a non-threaded, pre-derived Web server that works in a similar way to Apache 1.3. It is suitable for systems that do not have a thread-safe library and need to avoid
Prefork modeThis multi-path processing module (MPM) implements a non-threaded, pre-derived Web server that works in a similar way to Apache 1.3. It is suitable for systems that do not have a thread-safe library and need to avoid threading
If you're still using Apache when the whole world is going to be prone to nginx, you might be able to do everything you can to keep speed. You might tweak the modules to be loaded, using keepalive, fiddling with the Content negotiation module
Apache under three MPM modes: Prefork,worker and EventMPM (multi-processing module, multi-process processing module): Prefork,worker and Event to view the Apache mode, you can use the HTTPD-V command to view:
If you're still using Apache when the whole world is going to be prone to nginx, you might be able to do everything you can to keep speed. You might tweak the modules to be loaded, using keepalive, fiddling with the Content negotiation module
Idle sub-process: the sub-process that is not processing the request.1. prefork. C Module (a non-thread-type pre-derived MPM)Prefork mpmMultiple Sub-processes are used. Each sub-process has only one thread. Each process can maintain only one
Apache as the most widely used Web server and the most stable open source server software, its working mode has many, there are two main modes: Prefork mode and worker mode one, two modes Prefork mode: Prefork is the default (default) MPM on UNIX
The Apache 2.X supports the plug-in parallel processing module, called the Multichannel Processing module (MPM). When you compile Apache you must choose one MPM only, and there are several different MPM available for Unix-like systems, which can
The Apache 2.X supports the plug-in parallel processing module, called the Multichannel Processing module (MPM). When you compile Apache you must choose one MPM only, and there are several different MPM available for Unix-like systems, which can
Apache (HTTPD) has 3 core MPM (multi-processing module, multi-process processing modules) working mode, respectively Prefork,worker and event, The httpd-2.2 event mode is still the model used for testing, while the httpd-2.4 event mode can be used
In an Apache system, the concurrency in Linux is not very high, and it looks like 3 K (in fact, the HTTP request may only be 300/s). Common servers may encounter problems to varying degrees. the concurrency control of Apache is mainly controlled by
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.