动态监控
watch -n 1 'ps aux | grep httpd'
在客户端对服务器端做apache benchmark压力测试
ab -c 16 -n 10000 http://172.17.0.106
ab apache-benchmark
-c concurrency 并发数
-n 10000次请求
查看prefork的配置
httpd -V
httpd -l 编译好的静态模块(so_module提供MPM)
httpd -M 已有模块(DSO dynamic shared object)
vim /etc/httpd/conf/httpd.conf
<IfModule prefork.c>
StartServers 8
MinSpareServers 5
MaxSpareServers 20
ServerLimit 256
MaxClients 256
MaxRequestsPerChild 4000
</IfModule>