Hello,

I'm running Django+Apache+mod_wsgi:

Apache/2.2.16 (Debian) mod_python/3.3.1 Python/2.6.6 mod_ssl/2.2.16 
OpenSSL/0.9.8o mod_wsgi/3.3

Server MPM:     Worker
  threaded:     yes (fixed thread count)
    forked:     yes (variable process count)


apache conf:

        WSGIScriptAlias / /home/ja/apps/django/django-app.wsgi
        WSGIProcessGroup app-site-ssl
        WSGIDaemonProcess app-site-ssl processes=2 threads=16 
maximum-requests=1000 display-name=apache-app-wsgi-ssl
        XSendFile on

wsgi sctipt:

import newrelic.agent
newrelic.agent.initialize('/home/ja/apps/newrelic.ini', 'production')
import sys
import os
import os.path

sys.path.append(os.path.dirname(__file__))
os.environ['DJANGO_SETTINGS_MODULE'] = 'app.settings'

from django.core.handlers.wsgi import WSGIHandler
application = WSGIHandler()

application = newrelic.agent.wsgi_application()(application)



Once a day my site stops responding. I restart apache and everything backs 
to normal, today the server start respodning after 3 hours without manual 
restart.
In apache error logs I'm getting:


[Fri Mar 08 20:07:44 2013] [error] [client ip] Script timed out before 
returning headers: django-app.wsgi
[..,] lost of it
[Fri Mar 08 20:50:46 2013] [error] server is within MinSpareThreads of 
MaxClients, consider raising the MaxClients setting
[Fri Mar 08 20:56:45 2013] [error] server reached MaxClients setting, 
consider raising the MaxClients setting
[Fri Mar 08 22:49:48 2013] [warn] child process 913 still did not exit, 
sending a SIGTERM
[...] several lines for different pids
[Fri Mar 08 22:49:49 2013] [error] [client 204.93.223.151] (4)Interrupted 
system call: mod_wsgi (pid=14883): Unable to connect to WSGI daemon process
'app-site-ssl' on '/var/run/apache2/wsgi.14347.0.1.sock' after multiple 
attempts.
[...]
[Fri Mar 08 22:49:50 2013] [warn] child process 913 still did not exit, 
sending a SIGTERM
[...]
[Fri Mar 08 22:49:55 2013] [notice] caught SIGTERM, shutting down
[Fri Mar 08 22:49:59 2013] [error] python_init: Python version mismatch, 
expected '2.6.5+', found '2.6.6'.
[Fri Mar 08 22:49:59 2013] [error] python_init: Python executable found 
'/usr/bin/python'.
[Fri Mar 08 22:49:59 2013] [error] python_init: Python path being used 
'/usr/lib/python2.6/:/usr/lib/python2.6/plat-linux2:/usr/lib/python2.6/lib-tk:/
usr/lib/python2.6/lib-old:/usr/lib/python2.6/lib-dynload'.
[Fri Mar 08 22:49:59 2013] [notice] mod_python: Creating 8 session mutexes 
based on 6 max processes and 25 max threads.
[Fri Mar 08 22:49:59 2013] [notice] mod_python: using mutex_directory /tmp
[Fri Mar 08 22:49:59 2013] [notice] Apache/2.2.16 (Debian) mod_python/3.3.1 
Python/2.6.6 mod_ssl/2.2.16 OpenSSL/0.9.8o mod_wsgi/3.3 configured -- resuming 
normal operations
Service is back again

What can I do?

-- 
You received this message because you are subscribed to the Google Groups 
"modwsgi" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/modwsgi?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to