您好,欢迎来到二三娱乐。
搜索
您的当前位置:首页apache进程管理MPM详解

apache进程管理MPM详解

来源:二三娱乐

动态监控

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>

Copyright © 2019- yule263.com 版权所有 湘ICP备2023023988号-1

违法及侵权请联系:TEL:199 1889 7713 E-MAIL:2724546146@qq.com

本站由北京市万商天勤律师事务所王兴未律师提供法律服务