Get stacktrace from stuck python process
        Posted  
        
            by piquadrat
        on Stack Overflow
        
        See other posts from Stack Overflow
        
            or by piquadrat
        
        
        
        Published on 2009-11-23T09:14:29Z
        Indexed on 
            2010/04/18
            0:13 UTC
        
        
        Read the original article
        Hit count: 611
        
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 to requests anymore. While the problem isn't reproducible on a regular basis, one page containing 3 dynamic graphs triggers it sometimes, so I suspect some kind of race condition that leads to an endless loop or a stuck busywait.
The problem is, I have not yet found a way to debug this thing. There's nothing in the Zope logs and nothing in the system logs. I tried the suggestions from this question to get a stacktrace, but the only signal that has any effect is SIGKILL.
Is there another possibility to find out where exactly the process is when it gets stuck?
© Stack Overflow or respective owner