How do I tell if apache is running (or configured to run) as prefork or worker?
Answer
The MPM is configured at compile time. One way to figure it out afterwards is to list compiled in modules. That list will include the chosen MPM. The listing can be accomplished running the apache binary, with the -l flag.
andreas@halleck:~$ apache2 -l
Compiled in modules:
core.c
mod_log_config.c
mod_logio.c
worker.c
http_core.c
mod_so.c
andreas@halleck:~$
Here we find the module worker.c, hence I'm running the worker MPM.
No comments:
Post a Comment