Re: finding out what's blocking the reactor
Glyph <[email protected]> Mon, 13 May 2019 09:46:40 -0700
| Newsgroups | gmane.comp.python.twisted |
|---|---|
| Message-ID | <[email protected]> |
> On May 13, 2019, at 7:26 AM, Chris Withers <[email protected]> wrote: > > Hi All, > > On some busy instances of the app I'm working with/on, we see websocket connections being dropped due to not ping/ponging in time, I'm fairly sure this is as a result of some user-written callbacks blocking the reactor for long periods of time (seconds...). > > What's the best way to debug a twisted application to find out what's blocking the reactor? I don’t know about “the best”, but I’ve had some success with https://vmprof.readthedocs.io/en/latest and https://github.com/ggreer/twisted_hang depending on what you’re looking for. Let us know if these work out! -g _______________________________________________ Twisted-Python mailing list [email protected] https://twistedmatrix.com/cgi-bin/mailman/listinfo/twisted-python