小编Use*_*r-N的帖子

调整 Apache2 prefork MaxClients ServerLimit

我有一台 128 GB Ram 的机器,它使用 Apache2 作为 Web 服务器(在这台机器上没有数据库服务器,数据库机器是一台 64 GB Ram 机器,可以处理 2000 个最大连接)。我使用监控工具看到目前大约有 44 个忙碌的工作人员和 12 个空闲的工作人员,我的 prefork 模块的最佳理论值是多少?

我有时会在高负载时间加载网站时出现空白页面,并在我的 apache 错误日志中出现此错误:

【注意】child pid 13595 exit signal Segmentation fault (11)

如何解决这个问题呢?

我的 Apache2 Prefork 模块配置:

StartServers          3
MinSpareServers       3
MaxSpareServers       5
ServerLimit           3200
MaxClients            3100
MaxRequestsPerChild   0
Run Code Online (Sandbox Code Playgroud)

在 www 机器上免费 -h

总计:128 G 空闲空间:97GB(运行 apache2)共享 0b 缓冲区 1.9G 缓存 23G

Apache2 和其他程序使用的 Ram:

Private  +   Shared  =  RAM used    Program

 96.0 KiB +  61.0 KiB = 157.0 …
Run Code Online (Sandbox Code Playgroud)

hosting mpm-prefork shared-hosting segmentation-fault apache-2.2

23
推荐指数
1
解决办法
6万
查看次数