TCP CLOSE_WAIT leaks
- From: Dieter Maurer <dieter (at) handshake.de>
- Date: Wed, 22 Mar 2006 20:58:41 +0100
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
_______________________________________________
Zope-Dev maillist - Zope-Dev (at) zope.org
http://mail.zope.org/mailman/listinfo/zope-dev
** No cross posts or HTML encoding! **
(Related lists -
http://mail.zope.org/mailman/listinfo/zope-announce
http://mail.zope.org/mailman/listinfo/zope )