Documentos de Académico
Documentos de Profesional
Documentos de Cultura
avanzado
Resoluciones
Rendimiento
1. Habilite los módulos prefork , worker y event . Modifique las directivas asociadas a cada
módulo y realice pruebas con la herramienta ab .
MPM prefork .
Activar módulo.
# a2enmod mpm_prefork
# systemctl start apache2
<IfModule mpm_prefork_module>
StartServers 5
MinSpareServers 5
MaxSpareServers 10
MaxRequestWorkers 150
MaxConnectionsPerChild 0
</IfModule>
Reinicie el servidor.
Nota: Use las páginas man y las ayudas de comando para realizar distintas pruebas.
MPM worker .
Repita los pasos descritos anteriormente pero usando el módulo mpm_worker .
# worker MPM
# StartServers: initial number of server processes to start
# MinSpareThreads: minimum number of worker threads which are kept spare
# MaxSpareThreads: maximum number of worker threads which are kept spare
# ThreadLimit: ThreadsPerChild can be changed to this maximum value
during a
# graceful restart. ThreadLimit can only be changed by
stopping
# and starting Apache.
# ThreadsPerChild: constant number of worker threads in each server
process
# MaxRequestWorkers: maximum number of threads
# MaxConnectionsPerChild: maximum number of requests a server process
serves
<IfModule mpm_worker_module>
StartServers 2
MinSpareThreads 25
MaxSpareThreads 75
ThreadLimit 64
ThreadsPerChild 25
MaxRequestWorkers 150
MaxConnectionsPerChild 0
</IfModule>
# event MPM
# StartServers: initial number of server processes to start
# MinSpareThreads: minimum number of worker threads which are kept spare
# MaxSpareThreads: maximum number of worker threads which are kept spare
# ThreadsPerChild: constant number of worker threads in each server
process
# MaxRequestWorkers: maximum number of worker threads
# MaxConnectionsPerChild: maximum number of requests a server process
serves
<IfModule mpm_event_module>
StartServers 2
MinSpareThreads 25
MaxSpareThreads 75
ThreadLimit 64
ThreadsPerChild 25
MaxRequestWorkers 150
MaxConnectionsPerChild 0
</IfModule>