2016-06-08 2 views
1

Je configure un cache pour un projet Django, en utilisant le backend MemcachedCache.Erreur de segmentation lors de l'utilisation de memcached dans Django + Apache

Je l'ai testé en local et en préproduction et ça fonctionne comme un charme. Mais quand je le déployer sur le serveur de production j'obtenir de multiples erreurs sur des erreurs de segmentation juste après le redémarrage apache, comme les suivants:

 
[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. 
... 

Je ne comprends pas, parce que le serveur préproduction a moins de mémoire que le serveur de production (sur le moitié).

Pourriez-vous m'aider à comprendre le problème ou l'erreur derrière ce comportement?

Répondre