Forum Moderators: phranque

Message Too Old, No Replies

How to choose event and worker for Apache MPM?

         

AlanCC

3:53 am on Jun 29, 2023 (gmt 0)

10+ Year Member Top Contributors Of The Month



Hi,

My apache version is 2.4.57. Now I am thinking of switching MPM from worker to event.

Based on this [docs.cpanel.net...]
1. If your system requires threads and allows for safe thread-polling, use the event MPM.
2. If your system requires threads, but does not allow for safe thread-polling, use the worker MPM.

Our website uses WordPress and WHMCS. How can I know whether it allows for safe thread-polling?

Also is there a way to test whether event MPM performs better than worker MPM?

phranque

4:07 am on Jun 29, 2023 (gmt 0)

WebmasterWorld Administrator 10+ Year Member Top Contributors Of The Month



i would familiarize yourself with this apache doc:
Apache HTTP Server 2.x Thread Safety Issues [httpd.apache.org]
When using any of the threaded mpms in the Apache HTTP Server 2.x it is important that every function called from Apache be thread safe. When linking in 3rd party extensions it can be difficult to determine whether the resulting server will be thread safe. Casual testing generally won't tell you this either as thread safety problems can lead to subtle race conditions that may only show up in certain conditions under heavy load.

AlanCC

3:38 am on Jul 1, 2023 (gmt 0)

10+ Year Member Top Contributors Of The Month



OK. I see. Thank you very much