apache性能优化 ThreadsPerChild & MaxRequestsPerChild
来源:互联网 发布:四川大学软件学院 编辑:程序博客网 时间:2024/06/01 10:51
首先通过使用 httpd.exe -l 命令 找出apache部署的是哪个MPM。
在监测apache运行状态时,可以找到当前apache worker数量
从httpd-mpm.conf找到mpm
<IfModule mpm_winnt_module>ThreadsPerChild 500
MaxRequestsPerChild 10000
Win32DisableAcceptEx
</IfModule>
进程自apache启动,可以同时起多少线程(ThreadsPerChild)。MaxRequestsPerChild的含义是单个子进程累计最多处理到少个请求,默认0,不限制的意思,可能会导致内存泄露,超过该值则退出重启apache
ThreadsPerChild 数目一般100-500
acceptEx()是一个微软的WinSock2API, 通过使用accept() API提供了性能改善。一些防病毒软件或虚拟专用网络软件会干扰AcceptEX()的正确操作。可以关闭AcceptEx()
[warn] (OS 64)指定的网络名不再可用。 : winnt_accept: Asynchronous AcceptEx failed. 可以选择关闭
[warn] Server ran out of threads to serve requests. Consider raising theThreadsPerChild setting 表明worker 不够用了 可以增大 ThreadsPerChild
0 0
- apache性能优化 ThreadsPerChild & MaxRequestsPerChild
- apache ThreadsPerChild和MaxRequestsPerChild配置分析
- apache的性能调配 MaxClients 与MaxRequestsPerChild
- apache的性能调优 MaxClients 与MaxRequestsPerChild
- Apache中MaxRequestsPerChild是什么?
- apache中 MaxClients 与MaxRequestsPerChild
- apache 的 MaxRequestsPerChild 与 keepalive的关系
- Apache性能优化技巧
- Apache性能优化技巧
- Apache性能优化技巧
- Apache性能优化技巧
- Apache性能优化技巧
- Apache性能优化技巧
- Apache性能优化技巧
- 优化Apache的性能
- Apache性能优化技巧
- Apache 性能优化相关
- apache-性能优化
- 第9周上机实践项目3——输出星号图
- android 基础框架和启动过程
- ORA-00600 [1880]
- 专业学习小成果
- FFMPEG H264/H265 编码延迟问题
- apache性能优化 ThreadsPerChild & MaxRequestsPerChild
- 第九周 项目三 图形输出
- SpringMVC Websockets Messaging User Authentication with Spring Security
- 第9周项目2-分数的累加
- 求1000以内所有偶数的和(三)
- GIT 学习手册简介
- 第九周项目三—输出星号图
- Nil, nil, NULL, NSNull的一点区别
- 第九周项目1--求一千以内所有偶数的和(三)