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

Опубликовано: 05 Январь 2023
на канале: 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


Смотрите видео Apache2 MPM prefork, worker, event module configure-switch to other module and check running MPM онлайн без регистрации, длительностью часов минут секунд в хорошем качестве. Это видео добавил пользователь Mr. Duvi Tech 05 Январь 2023, не забудьте поделиться им ссылкой с друзьями и знакомыми, на нашем сайте его посмотрели 1,883 раз и оно понравилось like людям.