6

I have been googling this question for some time but got no answers. What's the Apache process model?

By process model, I mean how Apache manage process or thread to handling HTTP request.

Does it fork one process for each HTTP request?

Does it have process/thread pool?

Can we config it?

Is there any online doc for such Apache details?

Morgan Cheng
  • 73,950
  • 66
  • 171
  • 230
  • Although you should address this question to serverfault.com, I'll note that Apache has few modules for different request handling (fork, thread, mpm, etc.). – Eimantas Mar 13 '10 at 13:49

1 Answers1

4

This depends on your system and configuration : see Core Features and Multi-Processing Modules : you could use, for instance :


Quoting the page of the last one, Apache MPM worker :

This Multi-Processing Module (MPM) implements a hybrid multi-process multi-threaded server.
By using threads to serve requests, it is able to serve a large number of requests with fewer system resources than a process-based server.
However, it retains much of the stability of a process-based server by keeping multiple processes available, each with many threads.

Pascal MARTIN
  • 395,085
  • 80
  • 655
  • 663