我的networking应用程序有问题。 有时当人们上传一个图像(似乎只发生在大图像),我有mod_wsgi谁与这个消息崩溃:
End of script output before headers: wsgi.py, referer:http:::... Process 'wsgi' has died, restarting. Process 'wsgi' terminated by signal 9
所以引发了一个内部错误。
这是我的wsgi文件:
import os os.environ.setdefault("DJANGO_SETTINGS_MODULE", "settings") from django.core.wsgi import get_wsgi_application application = get_wsgi_application()
这里是wsgi conf文件
LoadModule wsgi_module modules/mod_wsgi.so WSGIPythonHome /opt/python/run/baselinenv WSGISocketPrefix run/wsgi WSGIRestrictEmbedded On <VirtualHost *:80> Alias /static/ /opt/python/current/app/static/ <Directory /opt/python/current/app/static/> Order allow,deny Allow from all </Directory> WSGIScriptAlias / /opt/python/current/app/wsgi.py <Directory /opt/python/current/app/> Require all granted </Directory> WSGIDaemonProcess wsgi processes=1 threads=15 display-name=%{GROUP} \ python-path=/opt/python/current/app:/opt/python/run/venv/lib/python2.7/site-packages user=wsgi group=wsgi \ home=/opt/python/current/app WSGIProcessGroup wsgi </VirtualHost>
你知道什么是问题,我能做些什么来解决它?
请注意,我不能迁移到nginx和gunicorn。
非常感谢