- Cheat Sheet and Example is command references/cheat sheets/examples for system engineers.

User Tools

Site Tools







Apache HTTP Server Configuration Examples

Apache MPM (Prefork , Worker, Event)

What is MPM

The core engine in Apache is called the 'MPM' -“Multi Processing Modules”.

You can choose to change the MPM.

If you want to use PHP, you must use prefork.

Prefork MPM

  • Each request/connection is handled by a process
  • Multi-processes; 1 thread per process
  • Eeach request is handled by a differentprocess.
  • This MPM is chosen mainly for stability and security.

Worker MPM

  • Each request/connection is handled by a thread
  • Multi-processes; multiple threads per process
  • This MPM is chosen for better performance and lower memory consumption.

Event MPM

  • It has been finally declared stable in Apache 2.4.
  • The way it function is similar to the Worker MPM.
  • it will assign a thread to a request.

Process vs Threads

Process -context switches are expensive
Threads -runs within a process
-no context switch

middleware/web/httpd/mpm.html.txt · Last modified: 2017/05/06 by admin

Page Tools