Hello,

We are having a problem that appears to be caused by a cheeky thread
preventing other threads from running, holding up all other requests
to the application. Without the ability to see the state of each
thread we're just playing guessing games trying to figure out the
guilty party.

After a bit of searching we came across Fazal Majid's useful
extension, threadframe
(http://www.majid.info/mylos/stories/2004/06/10/threadframe.html)
which exports thread stack frames as a dict.

If you've used Java much you know that sending SIGQUIT to a Java
process will dump all thread stack frames to stderr.  We wanted to
mimic this behavior in Python and so patched the ThreadedAppServer
class to catch SIGQUIT, dump threads to stdout, and continue on its
merry way.

Attached is the patch to Webware 0.9.1's ThreadedAppServer. Obviously
it requires the alpha/beta (but seemingly stable) threadframe package,
so caveat emptor, etc. etc.

Enjoy
Alex Southgate

Attachment: threadframe.patch
Description: Binary data

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys -- and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Webware-discuss mailing list
Webware-discuss@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/webware-discuss

Reply via email to