On Jan 19, 2011, at 12:32 PM, ae wrote:
> 
> I think the default minimum is 8 and it seems there are 3 other
> 'overhead' threads. (if I just start web2py without any thread
> options, ps shows 11 threads.)

The default minimum is 10 (set in Rocket). I think you're seeing the main 
thread plus the 10 worker threads.

> 
> If I do --maxthreads=2, I get 11 threads total.

That sounds normal, because minthreads (defaulting to 10) is still in effect. I 
could see it being otherwise, but it doesn't bother me much. One problem is 
that web2py doesn't officially know what Rocket's defaults are.

> 
> If I do --minthreads=2 --maxthreads=2, I get 5 total (3 + 2?)

I'm not sure where the 5 would be coming from; I'd expect 3 (main plus two 
workers).

> 
> So, since the default is 8 and I'm setting max to 2, it seems likely
> that somethings doing: max = min if max < min else max


Reply via email to