Question
Which MPM best serves mixed static/dynamic workloads in Apache 2.4?
Lax Cedar
0 reputation · 20 Sept 2022, 02:49 UTC
62.1K views0
Goal
Determine which MPM module—mpm_event or mpm_worker—provides the best performance for a server that serves both static assets and dynamic content, after measuring the current bottleneck with Apache’s built‑in diagnostics.
Constraints
- Apache 2.4 with
mod_deflateenabled for compression. - KeepAliveTimeout set to the default 5 s, potentially tying up worker threads.
- Traffic pattern includes bursts of concurrent connections and long‑lived keep‑alive sessions.
Unresolved Decision
Official documentation does not recommend one MPM over the other for mixed workloads; the optimal choice depends on measured CPU, memory, and latency characteristics.
Questions
- Can I use
mod_statuswithExtendedStatus Onto separate CPU usage caused bymod_deflatefrom that caused by request handling? - Which MPM—
mpm_eventormpm_worker—yields lower average latency when the server is under bursty traffic, given the current KeepAliveTimeout? - What measurement methodology should I adopt to reliably compare memory consumption and thread utilization between the two MPMs on my hardware?