Apache's MDM module

Source: Internet
Author: User

mpm:multipath processing modules  (Multi-Path Processing module) (1) Prefork: Multi-process model, each process responds to a request; a Master process: responsible for generating child processes and reclaiming child processes ; responsible for creating sockets; responsible for receiving requests and distributing them to a child process for processing;      n subprocess: Each subprocess processes a request;      Work model: Several idle processes are pre-generated and are ready to be used in response to user requests; maximum idle and minimum idle;      (2) Worker: Multi-process multithreaded model with one user request per thread;       a Master process: responsible for generating child processes, responsible for creating sockets, receiving requests, and distributing them to a child process for processing;      Multiple child processes: Each child process is responsible for generating multiple threads;      per thread: Responsible for responding to user requests;      concurrent response number:m*n             m: Number of child processes      N: The maximum number of threads that can be created per subprocess;     (3) Event: Events-driven model, multi-process model, each process responds to multiple requests;     a master process &NBSP;: Responsible for generating child processes; responsible for creating sockets; responsible for receiving requests and distributing them to a child process for processing;     child processes: Respond to multiple requests directly based on an event-driven mechanism;     httpd-2.2:  still uses model;     for testing Httpd-2.4:event can be used in a production environment; httpd-2.2 does not support compiling multiple MPM modules at the same time, so only the one selected to use can be compiled; the centos 6 RPM package specifically provides three application files for this purpose, httpd (PREFORK),  httpd.worker, httpd.event, respectively, to implement support for different MPM mechanisms; Verify which program file is being used now: ps  aux  | &NBSP;GREP&NBSP;HTTPD default for/USR/SBIN/HTTPD, which is Prefork's MPM module  ; view Module list for httpd programs: View statically compiled modules:# httpd   -l viewing statically compiled and dynamically compiled modules: # httpd  -m replacement using HTTPD program to support other MPM mechanisms; vim /etc/sysconfig/httpdhttpd=/ Usr/sbin/httpd. {Worker,event} Note: Restart the service process to take effect with MPM configuration:/etc/httpd/conf/httpd.confprefork configuration <IfModule prefork.c> startservers       8#  server just started is the number of idle processes started minspareservers     5#  minimum number of idle processes maxspareservers   20#  maximum number of idle processes serverlimit       256#  maximum number of processes to start maxclients       256#  The maximum number of processes initiated to respond to client requests. Maximum number of concurrent maxrequestsperchild  4000#  how many requests per process can be processed, up to 4,000 to destroy a process </ifmodule>worker configuration:< ifmodule worker.c>startservers         4#  How many idle processes are started when the server has just started Maxclients         300#  the maximum number of processes initiated to respond to client requests. Maximum number of concurrent minsparethreads     25#  minimum idle processes maxsparethreads      75#  maximum number of idle processes threadsperchild     25#  The maximum number of threads per process can be generated maxrequestsperchild The number of requests processed by the   0#  process is not limited </ifmodule>pv:page view: daily clicks, how many pages are clicked


Apache's MDM module

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.