Find what MPM model Apache is using
Apache is the most popular web server, it is Open Source and modular. Multi-Processing Modules (MPM) in Apache decides how Apache listens to the network and handles the incoming requests. Apache have many MPM Modules (Multi-Processing Modules), the most popular among them are Prefork, worker, and Event. You can only activate one Apache MPM at any time.
The most popular MPMs available on Linux servers are
- Prefork
- Worker
- Event
To find out which MPM you are using
On CentOS, run
1 2 3 |
[root@server22 ~]# httpd -M | grep mpm mpm_worker_module (shared) [root@server22 ~]# |
On Ubuntu
1 2 3 |
root@server1:~# a2query -M prefork root@server1:~# |
Or
1 2 3 |
root@server1:~# a2query -m | grep mpm mpm_prefork (enabled by maintainer script) root@server1:~# |
Or
1 2 3 |
root@server1:~# apachectl -M | grep mpm mpm_prefork_module (shared) root@server1:~# |
You can also find this information from the Apache Status page provided by mod_info
To enable mod_info, in httpd.conf, add
1 2 3 |
<Location /server-info> SetHandler server-info </Location> |
Now visit
1 |
http://your-server-ip/server-info |
See Apache