From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.3.2 (2011-06-06) on dcvr.yhbt.net X-Spam-Level: X-Spam-ASN: AS33070 50.56.128.0/17 X-Spam-Status: No, score=0.0 required=5.0 tests=none shortcircuit=no autolearn=unavailable version=3.3.2 X-Original-To: archivist@yhbt.net Delivered-To: archivist@dcvr.yhbt.net Received: from rubyforge.org (50-56-192-79.static.cloud-ips.com [50.56.192.79]) by dcvr.yhbt.net (Postfix) with ESMTP id 50B861F435 for ; Sat, 23 Jun 2012 16:29:13 +0000 (UTC) Received: from localhost.localdomain (localhost [127.0.0.1]) by rubyforge.org (Postfix) with ESMTP id 152192E068; Sat, 23 Jun 2012 16:29:12 +0000 (UTC) X-Original-To: mongrel-unicorn@rubyforge.org Delivered-To: mongrel-unicorn@rubyforge.org X-Greylist: delayed 410 seconds by postgrey-1.31 at rubyforge; Sat, 23 Jun 2012 16:19:30 UTC Received: from smtpfb1-g21.free.fr (smtpfb1-g21.free.fr [212.27.42.9]) by rubyforge.org (Postfix) with ESMTP id B65942E067 for ; Sat, 23 Jun 2012 16:19:30 +0000 (UTC) Received: from smtp6-g21.free.fr (smtp6-g21.free.fr [212.27.42.6]) by smtpfb1-g21.free.fr (Postfix) with ESMTP id 346012DEA5 for ; Sat, 23 Jun 2012 18:12:41 +0200 (CEST) Received: from Aurora.agora.int (unknown [82.231.123.109]) by smtp6-g21.free.fr (Postfix) with ESMTP id B927482276 for ; Sat, 23 Jun 2012 18:12:29 +0200 (CEST) From: Cedric Maion To: mongrel-unicorn@rubyforge.org Subject: `kill -SIGTRAP ` to get a live ruby backtrace + generate backtrace when murdering worker due to timeout Date: Sat, 23 Jun 2012 18:12:23 +0200 Message-Id: <1340467944-23621-1-git-send-email-cedric@maion.com> X-Mailer: git-send-email 1.7.9.5 X-BeenThere: mongrel-unicorn@rubyforge.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: mongrel-unicorn-bounces@rubyforge.org Errors-To: mongrel-unicorn-bounces@rubyforge.org 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