On 13/01/2010 21:47, Graham Dumpleton wrote:
By removing WSGIProcessGroup you are no longer running your
application in daemon mode, but instead are using embedded mode. Since
this particular issue that is affecting you only affects daemon mode,
switching to embedded mode will as a result make it go away.
Oh bugger. Yeah, so the reason it started working in the first place,
was because removing 'WSGIProcessGroup' was telling it to revert back to
embedded mode. That's really frustrating, heh :|
For a bit of a description about different modes and process models of
Apache/mod_wsgi have a read of:
http://code.google.com/p/modwsgi/wiki/ProcessesAndThreading
For the dangers of using embedded mode read:
http://blog.dscpl.com.au/2009/03/load-spikes-and-excessive-memory-usage.html
Thanks for these. I remember reading the load spikes and memory usage
one before when you showed it to someone else. Although I wasn't using
mod_wsgi at the time, it seemed interesting and something to bear in
mind for the future. To be honest, I think it's the main reason why I've
been trying to get it to run in daemon mode (for memory conservation).
It's a real shame that it seems a bit broken. I'll read through the
processes and threading one too just as soon as I'm a bit more awake.
So, at least so you can move forward try with embedded mode, but I may
keep quizzing you about things so can work out why daemon mode isn't
working on FreeBSD.
Yeah I'll do that, I need to crack on with the new project and make some
progress with migrating the old ones. That's no problem, if I can help
or provide more info that will assist with solving the issue, I'll
certainly do what I can. I'd still like to be able to use daemon mode
one day :)
BTW, can you supply me the output from running:
httpd -V
Sure...
Server version: Apache/2.2.14 (FreeBSD)
Server built: Jan 13 2010 02:48:24
Server's Module Magic Number: 20051115:23
Server loaded: APR 1.3.9, APR-Util 1.3.9
Compiled using: APR 1.3.9, APR-Util 1.3.9
Architecture: 32-bit
Server MPM: Prefork
threaded: no
forked: yes (variable process count)
Server compiled with....
-D APACHE_MPM_DIR="server/mpm/prefork"
-D APR_HAS_SENDFILE
-D APR_HAS_MMAP
-D APR_HAVE_IPV6 (IPv4-mapped addresses enabled)
-D APR_USE_FLOCK_SERIALIZE
-D APR_USE_PTHREAD_SERIALIZE
-D SINGLE_LISTEN_UNSERIALIZED_ACCEPT
-D APR_HAS_OTHER_CHILD
-D AP_HAVE_RELIABLE_PIPED_LOGS
-D DYNAMIC_MODULE_LIMIT=128
-D HTTPD_ROOT="/usr/local"
-D SUEXEC_BIN="/usr/local/bin/suexec"
-D DEFAULT_PIDLOG="/var/run/httpd.pid"
-D DEFAULT_SCOREBOARD="/var/run/apache_runtime_status"
-D DEFAULT_LOCKFILE="/var/run/accept.lock"
-D DEFAULT_ERRORLOG="/var/log/httpd-error.log"
-D AP_TYPES_CONFIG_FILE="etc/apache22/mime.types"
-D SERVER_CONFIG_FILE="etc/apache22/httpd.conf"
Thanks again for all your help in advancing my understanding of all this
and for your help with getting it working.
Kind regards,
mog
--
You received this message because you are subscribed to the Google Groups
"modwsgi" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/modwsgi?hl=en.