Hi,

How are threads managed in web2py? I am stress testing with a multithreaded 
programm, and I see that web2py spawns 14 "worker threads".
These threads are not created/destroyed, but seem to run forever.

python,8698 web2py.py -a aaaa
  |-{python},9005
  |-{python},9023
  |-{python},9042
  |-{python},9043
  |-{python},9044
  |-{python},9050
  |-{python},9051
  |-{python},9053
  |-{python},9054
  |-{python},9055
  |-{python},9057
  |-{python},9058
  |-{python},9059
  `-{python},9060

I have several questions:

   - How do these threads map to the requests? Does each thread serve a 
   request?
   - That means web2py can maximally cope with 14 parallel requests?
   - Is this number (14) configurable?
   - Are the objects defined in the models initialized at thread creation, 
   and then reused for all requests?

Thanks,

Daniel

-- 



Reply via email to