On Friday, September 3, 2010, Reinout van Rees <[email protected]> wrote:
> Hi,
>
> I'm having problems getting my site to run on windows (I'm used to ubuntu).  
> I don't think they're related to mod_wsgi, but I'd like to use some of 
> mod_wsgi's settings to try to pinpoint/isolate the problem or to limit the 
> damage.
>
> Problem: it is WSGIDaemonProcess that has all the nice options! 
> deadlock-timeout, number of threads, that sort of options.  But daemon mode 
> isn't available on windows, so using that directive is out.  So setting those 
> nice options is out.  I only have two wsgi-related directives in my site's 
> apache config file:  "WSGIApplicationGroup %{GLOBAL}" and of course a 
> WSGIScriptAlias.
>
>
> Am I overlooking something?  wsgiscriptalias doesn't take any options. Can I 
> (for testing only, hopefully) tell mod_wsgi to use only a single thread on 
> windows?


On Windows you are limited to what you can do with the Apache MPM
settings. Threads is controlled by ThreadsPerChild. See:

http://httpd.apache.org/docs/2.2/mod/mpm_common.html#threadsperchild

For other background information around how Windows differs to UNIX
systems read:

http://code.google.com/p/modwsgi/wiki/ProcessesAndThreading

Source code reloading on Windows is also a problem as can't just
restart the daemon process. For workarounds for that see end of:

http://code.google.com/p/modwsgi/wiki/ReloadingSourceCode

for general code monitor for detecting changes and then how to adapt
that to Windows if want automatic code reloading there. Either way, on
Windows an Apache restart is required.

Overall not much flexibility on Windows and in some respects less than
embedded mode on UNIX where you can at least have multiple single
threaded processes to get concurrency where force to have code be
single threaded.

Graham

>
> Reinout
>
> --
> Reinout van Rees - [email protected] - http://reinout.vanrees.org
> Collega's gezocht!
> Django/python vacature in Utrecht: http://tinyurl.com/35v34f9
>
> --
> 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.
>
>

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

Reply via email to