2009/1/3 William Dode <[email protected]>:
>
> Hi,
>
> I switched an app to multithread. Now i would like to know how many
> threads was used simultaneously. For two reasons. To know if i really
> need multithread and if yes how many thread i must configure. Thought
> i know that i should not choose the minimum...
>
> Is there an easy way to do this ?

What did you so to switch the app to multithreaded?

How to configure how many threads are used depends on whether you are
using embedded mode or daemon mode. If embedded mode, is dictated by
the MPM specific settings in main Apache configuration:

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

For daemon mode, dictated by options to WSGIDaemonProcess, or defaults
if not specified:

  
http://code.google.com/p/modwsgi/wiki/ConfigurationDirectives#WSGIDaemonProcess

So, what is the configuration you used to setup mod_wsgi, including
any directives to delegate to daemon process?

As to whether threading is suitable and/or how many threads are
required depends on your application. What application are you
running?

For majority of people, using daemon mode with default single process
and default of 15 threads is probably going to be more than adequate.
May want to look at multiple daemon processes if setting
maximum-requests so that might still have other processes to handle
requests while one is restarting.

For some background reading on all the various process/thread
configurations possible with mod_wsgi, see:

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

Graham

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