Apache working mode Prefork process mode and worker threading mode parameter details and recommended settings

Source: Internet
Author: User

An Apache mode of operation:

1.prefork process mode:

650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M01/4C/79/wKioL1Q-HcnBMa84AANzU0SYB7A215.jpg "title=" p1.png "alt=" Wkiol1q-hcnbma84aanzu0syb7a215.jpg "/>

Prefork Mode parameter Description:
650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M02/4C/78/wKiom1Q-HdShGC8fAAOfxbv_kSM265.jpg "title=" p2.png "alt=" Wkiom1q-hdshgc8faaofxbv_ksm265.jpg "/>


prefork mode recommended settings:

650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M02/4C/78/wKiom1Q-Hfrj3FxJAAF5F8dVHLA023.jpg "title=" p3.png "alt=" Wkiom1q-hfrj3fxjaaf5f8dvhla023.jpg "/>

Two.Apache worker mode :

1. Parameters


650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M02/4C/7A/wKiom1Q-M73wM-VgAASIPPKIFGc975.jpg "style=" float: none; "title=" W1.png "alt=" Wkiom1q-m73wm-vgaasippkifgc975.jpg "/>

650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M00/4C/7B/wKioL1Q-M_WzDDOlAAMFu0miG04948.jpg "style=" float: none; "title=" W2.png "alt=" Wkiol1q-m_wzddolaamfu0mig04948.jpg "/>

650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M00/4C/7A/wKiom1Q-M76js8JkAABHi6GMDFg382.jpg "style=" float: none; "title=" W221.png "alt=" Wkiom1q-m76js8jkaabhi6gmdfg382.jpg "/>

650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M01/4C/7B/wKioL1Q-M_ahIOl5AADYaxr8d_w976.jpg "style=" float: none; "title=" W31.png "alt=" Wkiol1q-m_ahiol5aadyaxr8d_w976.jpg "/>

650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M01/4C/7A/wKiom1Q-M7_CwnVhAAC0K_QKwJ8959.jpg "style=" float: none; "title=" W33.png "alt=" Wkiom1q-m7_cwnvhaac0k_qkwj8959.jpg "/>

650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M02/4C/7B/wKioL1Q-M_aQv6-7AACzHZMIiRk578.jpg "style=" float: none; "title=" W34.png "alt=" Wkiol1q-m_aqv6-7aaczhzmiirk578.jpg "/>

650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M02/4C/7A/wKiom1Q-M8Dy0SiSAAJf9GsQNyo264.jpg "style=" float: none; "title=" W5.png "alt=" Wkiom1q-m8dy0sisaajf9gsqnyo264.jpg "/>

650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M00/4C/7B/wKioL1Q-M_jRjbdtAAHA4jd1nDI990.jpg "style=" float: none; "title=" W6.png "alt=" Wkiol1q-m_jrjbdtaaha4jd1ndi990.jpg "/>

650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M00/4C/7A/wKiom1Q-M8LzgBgaAAFylZEfRNk705.jpg "style=" float: none; "title=" W7.png "alt=" Wkiom1q-m8lzgbgaaafylzefrnk705.jpg "/>

Three. Prefork and worker mode comparisons:

1.prefork mode is stable . But it consumes more memory and resources. process to provide services. View: Ps-ef|grep httd|wc-l

2.worker mode is suitable for high-concurrency high-traffic HTTP services because it uses child processes to generate threads to handle requests. Disadvantage, a thread is dead, and all child threads under the parent process are hung. Stability is inferior to prefork mode, but consumes less resources than prefork mode. threads provide services . Without serverlimit, the default number of sub-processes is 16. View number of child threads: Pstree-a|grep http

This article is from "Spider-Man" blog, please be sure to keep this source http://txidc.blog.51cto.com/9138217/1564385

Apache working mode Prefork process mode and worker threading mode parameter details and recommended settings

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.