In the mod_wsgi wiki is a small recipe how you can debug wsgi applications with a monitoring thread.
I extended this pattern, you can find it here: http://stackoverflow.com/questions/12458170/live-profiling-of-python-server/12458172 The monitoring threads creates stacktraces of all threads (except itself) and writes them to a log file. The script can be used to examine the log file and show which lines occur the most. It did not slow down my production server even if I create stacktraces every 0.1 second. Thomas Güttler -- Thomas Guettler, http://www.thomas-guettler.de/ E-Mail: guettli (*) thomas-guettler + de -- You received this message because you are subscribed to the Google Groups "modwsgi" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/modwsgi?hl=en.
