On Nov 24, 2010, at 5:59 AM, Phyo Arkar wrote:
> I haven't tried DEFAULT_MAX_THREADS it yet but to report that it is not just 
> windows problem it happens in Linux too.
> WHen i test my Homepage which dont do anything dynamic much , just login box 
> , with static js and css. That caused long load delays too.

By all means give max-threads a try. If the problem is thread starvation, it's 
not likely to be Windows-specific. The default limit is 10, which isn't a lot 
for pages with a lot of resources.

> 
> Tim , sorry to know that u got injury. Had you recovered well now?
> 
> 
> On Wed, Nov 24, 2010 at 12:01 PM, Jonathan Lundell <[email protected]> wrote:
> On Nov 23, 2010, at 8:48 PM, Anthony wrote:
> >
> > On Nov 23, 9:26 pm, Jonathan Lundell <[email protected]> wrote:
> >>> On Nov 23, 8:10 pm, Timbo <[email protected]> wrote:
> >>>> Set numthreads=0 in your options.py.  See if you still see this
> >>>> behavior.
> >>
> >>> options.py is just for running web2py as a Windows service, no? I'm
> >>> not running web2py as a Windows service when I observe the problem.
> >>
> >> If you're running from the command line, use --options 0.
> >
> > Do you mean use the -n command line option to set numthreads to 0,
> > e.g.:
> >
> >   python web2py.py -a password -i 127.0.0.1 -p 8000 -n 0
> >
> > I tried this, but in that case, I can't get 127.0.0.1:8000 to load at
> > all (it just hangs indefinitely).
> 
> Right, now that I look at it, there's no way to override max_threads. Maybe 
> there should be....
> 


Reply via email to