Apache2 MPM prefork, worker, event module configure-switch to other module and check running MPM

Published: 05 January 2023
on channel: Mr. Duvi Tech
1,883
like

Apache2 MPM prefork, worker, event module configure-switch to other module and check running MPM @Mr.duvi

for tutorial link:-
https://stackoverflow.com/a/76578164/...

angled bracket IfModule mpm_event_module angled bracket
StartServers 3
MinSpareThreads 75
MaxSpareThreads 250
ThreadLimit 64
ThreadsPerChild 25
MaxRequestWorkers 400
MaxConnectionsPerChild 0
angled bracket /IfModule angled bracket

The default values for MaxRequestWorkers are calculated like this:

MaxRequestWorkers 400 (16 x 25 = 400)
ServerLimit 16 (default)
ThreadsPerChild 25 (default)

=========================

You will see the following lines

StartServers 5
MinSpareServers 5
MaxSpareServers 10
MaxRequestWorkers 150
MaxConnectionsPerChild 0

You can change them to the following configuration to increase max requests per second. The following configuration supports up to 8000 concurrent users

IfModule mpm_worker_module
ServerLimit 250
StartServers 10
MinSpareThreads 75
MaxSpareThreads 250
ThreadLimit 64
ThreadsPerChild 32
MaxRequestWorkers 8000
MaxConnectionsPerChild 10000
/IfModule

You can also add the above lines to Apache web server configuration file, or Virtual host configuration file.

Let’s quickly look at the parameters

Serverlimit – Maximum number of Apache processes
StartServers – Number of processes to start when you start running Apache
MinSpareThreads/MaxSpareThreads – Number of threads to keep idle without being killed
ThreadsPerChild – Number of threads per process
MaxRequestWorkers – Number of concurrent connections to be supported. This is the main directive that you need to change to increase max connections in Apache
MaxConnectionsPerChild – Number of connections to be handled by each child before it is killed


Watch video Apache2 MPM prefork, worker, event module configure-switch to other module and check running MPM online without registration, duration hours minute second in high quality. This video was added by user Mr. Duvi Tech 05 January 2023, don't forget to share it with your friends and acquaintances, it has been viewed on our site 1,883 once and liked it like people.