From: Cedric Maion <cedric@maion.com>
To: mongrel-unicorn@rubyforge.org
Subject: `kill -SIGTRAP <worker pid>` to get a live ruby backtrace + generate backtrace when murdering worker due to timeout
Date: Sat, 23 Jun 2012 18:12:23 +0200 [thread overview]
Message-ID: <1340467944-23621-1-git-send-email-cedric@maion.com> (raw)
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!
_______________________________________________
Unicorn mailing list - mongrel-unicorn@rubyforge.org
http://rubyforge.org/mailman/listinfo/mongrel-unicorn
Do not quote signatures (like this one) or top post when replying
next reply other threads:[~2012-06-23 16:29 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-06-23 16:12 Cedric Maion [this message]
2012-06-23 16:12 ` [PATCH] `kill -SIGTRAP <worker pid>` to get a live ruby backtrace + generate backtrace when murdered worker due to timeout Cedric Maion
2012-06-23 18:55 ` [PATCH] `kill -SIGTRAP <worker pid>` Eric Wong
2012-06-24 11:05 ` Cedric Maion
2012-06-25 3:59 ` Eric Wong
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
List information: https://yhbt.net/unicorn/
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1340467944-23621-1-git-send-email-cedric@maion.com \
--to=cedric@maion.com \
--cc=mongrel-unicorn@rubyforge.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://yhbt.net/unicorn.git/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).