[Zope-dev] TCP CLOSE_WAIT leaks
Dieter Maurer
dieter at handshake.de
Wed Mar 22 14:58:41 EST 2006
Alan Milligan wrote at 2006-3-22 10:12 +1100:
>I've been noticing a situation for some time that my 2.8.5 Z2 is running
>out of threads. When doing an lsof on it, I see a large number of TCP
>handles in CLOSE_WAIT state.
>
>It seems something's not properly clearing down the connection to
>release the thread.
I doubt that this is the case.
The IO, including the closing of the connection, is
handled by the ZServer thread. This is a single thread.
You would immediately observe should it block (Zope would
be irresponsive).
When the connection is closed, the Zope worker thread has
already been released. By the way, their number is fixed
(and usually small).
--
Dieter
More information about the Zope-Dev
mailing list