[Webware-discuss] RE: [ZODB-Dev] Webkit Threading and ZODB 3.
3a2: problems on Windows
Geoffrey Talvola
gtalvola at nameconnector.com
Thu Feb 19 13:46:47 EST 2004
Ian Bicking wrote:
> Tim Peters wrote:
>> Alas, it wasn't clear in the original report whether threads *are*
>> getting created and destroyed, or whether the threads in the pool
>> hang around forever. If the latter, it doesn't matter how ofter
>> tids get reused; whether on Linux or Windows, no two threads
>> *simultaneously* alive will return the same tid.
>
> If it helps, Webware preallocates its threads, and reuses
> them indefinitely.
Not quite -- see my other message about the variable thread pool.
> I'm not sure if this is the case if you are running scheduled
> tasks in
> Webware, though I believe that's implemented with a single
> preallocated thread as well. Maybe Matt or someone can confirm if
> scheduled tasks are part of the application, or a their use a
> predictor of
> the problem.
Sessions are "swept" in a scheduled task. If you're storing any ZODB
objects in session variables that could easily cause a problem. Also, any
given servlet instance will be reused by different threads so you shouldn't
store any ZODB objects in servlet instance variables, or at least make sure
they get cleaned out by sleep().
- Geoff
More information about the ZODB-Dev
mailing list