我正在使用 MemcachedCache 后端为 Django 项目配置缓存。
我已经在本地和预生产服务器中对其进行了测试,它就像一个魅力。但是当我在生产服务器上部署它时,我在重启 apache 后收到多个关于分段错误的错误,如下所示:
[mpm_prefork:notice] [pid 40094] AH00169:捕获 SIGTERM,正在关闭 [mpm_prefork:notice] [pid 27734] AH00163: Apache/2.4.7 (Ubuntu) PHP/5.5.9-1ubuntu4.5 OpenSSL/1.0.1f mod_wsgi/3.4 Python/2.7.6 已配置 $ [核心:通知] [pid 27734] AH00094:命令行:'/usr/sbin/apache2' [core:notice] [pid 27734] AH00052: child pid 28214 exit signal Segmentation fault (11) [core:notice] [pid 27734] AH00052: child pid 28225 exit signal Segmentation fault (11) [crit] 内存分配失败,中止进程。 [mpm_prefork:error] [pid 27734] (12)Cannot allocate memory: AH00159: fork: Unable to fork new process [核心:通知] [pid 27734] AH00052:子 pid 28239 退出信号中止 (6) [core:notice] [pid 27734] AH00052: child pid 28279 exit signal Segmentation fault (11) [core:notice] [pid 27734] AH00051: child pid 28280 exit signal Segmentation fault (11), /etc/apache2 中可能的 coredump [core:notice] [pid 27734] AH00052: child pid 28313 exit signal Segmentation fault (11) [core:notice] [pid 27734] AH00052: child pid 28335 exit signal Segmentation fault (11) [core:notice] [pid 27734] AH00052: child pid 28355 exit signal Segmentation fault (11) [mpm_prefork:error] [pid 27734] (12)Cannot allocate memory: AH00159: fork: Unable to fork new process [core:notice] [pid 27734] AH00052: child pid 28278 exit signal Segmentation fault (11) [core:notice] [pid 27734] AH00052: child pid 28336 exit signal Segmentation fault (11) [mpm_prefork:error] [pid 27734] (12)Cannot allocate memory: AH00159: fork: Unable to fork new process [crit] 内存分配失败,中止进程。 ...
我不明白,因为预生产服务器的内存比生产服务器少(大约一半)。
您能帮我找出这种行为背后的问题或错误吗?