Get stacktrace from stuck python process

后端 未结 5 1302
北荒
北荒 2021-01-03 01:15

I have to run a legacy Zope2 website and have some grievance with it. The biggest issue is that, occasionally, it just locks up, running at 100% CPU load and not answering t

5条回答
  •  情书的邮戳
    2021-01-03 01:49

    See my answer to this SO question, use Products.signalstack. It registers the same handler as the answer you already found, at Product registration time. Perhaps it works better for you.

    If not, you probably have a OS-level I/O problem on your hands, and your only hope is attaching gdb to the process. Search Stack Overflow for gdb answers; there is a wealth of information here!

提交回复
热议问题