You can use https://github.com/benfred/py-spy#dump to get a stack trace from a separate running Python process. It won’t show the current request paths but perhaps it could be adapted to do so.
David > On Aug 21, 2022, at 11:23 AM, Mikko Ohtamaa <[email protected]> wrote: > > > Hi all, > > I am running Pyramid + SQLAlchemy website on the top of Gunicorn. Sometimes > requests get stuck of the Pyramid application becomes non-responsive for > certain requests (not all). Despite good attempts using Gunicorn statsd > monitoring, I have had no good success to pin down these problematic requests. > > Do you know any tools that could offer UNIX top like monitoring for the > currently active requests? I know this is a far shot - Gunicorn did not seem > to offer any interface in its documentation to offer anything like this. And > if this is not the case, which is unfortunately likely, what would be nice > way to pull start request and stop request events from Pyramid to a separate > CLI tool, so one could see when bad things start to happen? > > Br, > Mikko > -- > You received this message because you are subscribed to the Google Groups > "pylons-discuss" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To view this discussion on the web visit > https://groups.google.com/d/msgid/pylons-discuss/CAK8RCUs%2BfahvVuq6Ww5i7WfTND2_h45_t7KnXOtofE_ubZxPZw%40mail.gmail.com. -- You received this message because you are subscribed to the Google Groups "pylons-discuss" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/pylons-discuss/8851976B-E75B-4699-B947-D215B5102EC1%40glicksoftware.com.
