[Zope-dev] Python Method infinite loop?

Martijn Pieters mj@digicool.com
Sat, 11 Mar 2000 15:40:12 +0100


From: "Jeff K. Hoffman" <jeff.hoffman@goingv.com>
> While I'm on the topic, is there any way to figure out WHAT thread is
> stuck in a loop? ie. If this were a Python Method that only looped every
> third tuesday of the fifth leap year per century, is there a way for me to
> identify what went awol, either using the monitor, or manage_debug, or...?

/Control_Panel/manage_debug lists open ZODB connections, and the REQUEST
that is active on that connection. So, if connections aren't freed for a
long time, you can see what caused this.

The info you get is:

<time started> <REQUEST. (<cache size>)

Martijn Pieters
| Software Engineer    mailto:mj@digicool.com
| Digital Creations  http://www.digicool.com/
| Creators of Zope       http://www.zope.org/
|   The Open Source Web Application Server
---------------------------------------------