DeadlockDebugger

This product adds a hook so that a deadlocked Zope process can be debugged, by dumping a traceback of all running python processes.

Current release
DeadlockDebugger 1.0

Released Jun 07, 2006

Initial release.
More about this release…

Download fileGet DeadlockDebugger for all platforms (0 kB)
Product Package
Download fileGet DeadlockDebugger for all platforms
The threadframe Python module; also has precompiled Windows binaries

Project Description

The dump is sent to the event log (at the DEBUG level) and returned to the browser (even though the Zope is deadlocked and doesn't answer any other requests!).

DeadlockDebugger can of course also be used to debug Zope in non-deadlock situations, when a Zope process is taking a long time and you wish to know what code is being executed.

DeadlockDebugger was written by Florent Guillaume.

Installation instructions

  • Download DeadlockDebugger and place it in your Products directory
  • Edit the DeadlockDebugger/custom.py to:
    • ACTIVATED = True
    • SECRET = 'yourpassword' # you must change this
    • ...and save the file
  • Download threadframe
  • Install it in the Python you use to run Zope like this:
    • cd threadframe-0.2
    • python2.4 setup.py install (you might have to use sudo, depending on your setup)
  • Restart Zope
  • Go to http://yourzope/manage_debug_threads?yourpassword
  • It will then dump the what each of the threads is currently doing, normally giving you good clues about what your application is up to
Make sure you deactivate it after using it, and do not leave it installed/enabled on production servers, as it is a potential security risk.