`kill -SIGTRAP <worker pid>` to get a live ruby backtrace + generate backtrace when murdering worker due to timeout

Cedric Maion cedric at maion.com
Sat Jun 23 16:12:23 UTC 2012


Hi,

The following patch allows dumping of live Ruby backtraces of running workers by sending a TRAP signal (kill -5) to the worker PID.
The master also automatically generates a backtrace when it kills a worker due to timeout: this helps identifying what was doing the worker and hopefully give a hint of what was taking so much time.

Kind regards,

    Cedric

PS: not subscribed to the ML, so please CC: me when replying. Thanks!


More information about the mongrel-unicorn mailing list