Apache's MPM mechanism-prefork

Source: Internet
Author: User

Apache is based on modular design.

The basic service also uses a modular design, but this module is exclusive and can only be called at the same time.

The MPM (multi processing module) multi-processing module is a basic module. It was originally run on the Unix family of operating systems. Later, when porting to other platforms, a module based on the local operating system was selected.

On the Unix family, the prefor, worker, and event three modules are generated depending on whether the thread is supported.

The Prefork module does not use threads and is the most basic.

For a httpd server, in order to provide good external services, the first to start some processes, Prefork mode default is 5. The minimum number of idle processes is 5, the maximum idle process is 10, and the maximum process (maxrequestworkers) is 256.

From this you can see the default configuration in Ubuntu Linux 14.04LTS.

Prefork has 5 items.

The maximum number of processes set is 150.

The connections that each process can serve are set to be unlimited. If you set this number to not 0, you can avoid the amount of memory that may be affected by a possible memory leak.

Apache's MPM mechanism-prefork

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.