1
我正在使用MemcachedCache後端爲Django項目配置緩存。在Django + Apache中使用memcached時發生分段錯誤
我已經在本地和預生產服務器上測試過它,它的功能就像一個魅力。但是,當我在生產服務器上部署我得到分段錯誤多個錯誤剛剛重啓Apache之後,像如下:
[mpm_prefork:notice] [pid 40094] AH00169: caught SIGTERM, shutting down [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 configured $ [core:notice] [pid 27734] AH00094: Command line: '/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] Memory allocation failed, aborting process. [mpm_prefork:error] [pid 27734] (12)Cannot allocate memory: AH00159: fork: Unable to fork new process [core:notice] [pid 27734] AH00052: child pid 28239 exit signal Aborted (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), possible coredump in /etc/apache2 [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] Memory allocation failed, aborting process. ...
我不明白,因爲預生產服務器具有比生產服務器更少的內存(約半)。
你能幫我弄清楚這個行爲背後的問題或錯誤嗎?