From mboxrd@z Thu Jan 1 00:00:00 1970 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=3.0 tests=AWL,MSGID_FROM_MTA_HEADER, TVD_RCVD_IP shortcircuit=no autolearn=unavailable version=3.3.2 Path: news.gmane.org!not-for-mail From: Claudio Poli Newsgroups: gmane.comp.lang.ruby.rainbows.general Subject: How to manage growing memory with Rainbows! Date: Tue, 12 Feb 2013 05:19:54 +0100 Message-ID: NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 (Mac OS X Mail 6.2 \(1499\)) Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1360643220 21602 80.91.229.3 (12 Feb 2013 04:27:00 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 12 Feb 2013 04:27:00 +0000 (UTC) To: rainbows-talk-GrnCvJ7WPxnNLxjTenLetw@public.gmane.org Original-X-From: rainbows-talk-bounces-GrnCvJ7WPxnNLxjTenLetw@public.gmane.org Tue Feb 12 05:27:20 2013 Return-path: Envelope-to: gclrrg-rainbows-talk@m.gmane.org X-Original-To: rainbows-talk-GrnCvJ7WPxnNLxjTenLetw@public.gmane.org Delivered-To: rainbows-talk-GrnCvJ7WPxnNLxjTenLetw@public.gmane.org X-Greylist: delayed 411 seconds by postgrey-1.31 at rubyforge; Tue, 12 Feb 2013 04:26:53 UTC X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=x-received:sender:from:content-type:content-transfer-encoding :subject:message-id:date:to:mime-version:x-mailer:x-gm-message-state; bh=5ypQMlHE6JofGuoumX/85L0ffvnP/mJv5usUCu1YN9g=; b=O0JM2DYVJONpMae3L8iytu7L04kspw+wt2IwXchrzAGoXgWQrdChQwglpVDYEP+K/k jVG0e8Zt4xp8bTN7vmESOeWXYClMD3VB6hgSume8WPuxMNe0ErJethVMRa5C6eZDqdNi 8Qg8xCpepQwykfHoMIt/y4DbwGxTAJXoNGE3irbOHbuiPsf6ZIDgSsW9bSIMqal8CA5V EekgMcSuCkKXIWpTPWs0IYUfBti9LiP/qCdFIVbp7hSxSinb+yZXqkLzWPpIXicPP8IS dqrU9gVf3K/F5SAouxTK1KlhbCzrvTeZypfeTx6CFwZUKDueH6QzqtHZSyCZtSufQ0C7 UKJQ== X-Received: by 10.14.173.69 with SMTP id u45mr58080840eel.21.1360642797780; Mon, 11 Feb 2013 20:19:57 -0800 (PST) X-Mailer: Apple Mail (2.1499) X-Gm-Message-State: ALoCoQmB4LERLfC3H3pWd4Q9D474iEIZhwe/3qZhKJ0qc03qxzu0V3RLVqIQ1iWXVhdOXGn2/ffs X-BeenThere: rainbows-talk-GrnCvJ7WPxnNLxjTenLetw@public.gmane.org X-Mailman-Version: 2.1.12 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: rainbows-talk-bounces-GrnCvJ7WPxnNLxjTenLetw@public.gmane.org Errors-To: rainbows-talk-bounces-GrnCvJ7WPxnNLxjTenLetw@public.gmane.org Xref: news.gmane.org gmane.comp.lang.ruby.rainbows.general:446 Archived-At: Received: from 50-56-192-79.static.cloud-ips.com ([50.56.192.79] helo=rubyforge.org) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1U57Sh-0000jN-RK for gclrrg-rainbows-talk@m.gmane.org; Tue, 12 Feb 2013 05:27:20 +0100 Received: from localhost.localdomain (localhost [127.0.0.1]) by rubyforge.org (Postfix) with ESMTP id E40DD2E09A; Tue, 12 Feb 2013 04:26:58 +0000 (UTC) Received: from mail-ee0-f46.google.com (mail-ee0-f46.google.com [74.125.83.46]) by rubyforge.org (Postfix) with ESMTP id 1FC9C2E09A for ; Tue, 12 Feb 2013 04:26:52 +0000 (UTC) Received: by mail-ee0-f46.google.com with SMTP id e49so3617442eek.33 for ; Mon, 11 Feb 2013 20:26:52 -0800 (PST) Received: from [192.168.5.103] ([151.64.208.92]) by mx.google.com with ESMTPS id h5sm65744109eem.1.2013.02.11.20.19.55 (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Mon, 11 Feb 2013 20:19:56 -0800 (PST) Hello people, I've recently came across the https://github.com/kzk/unicorn-worker-killer which works wonders with Unicorn, however I'm considering to switching back to Rainbows! + Threadpool. My only concern is the growing memory, as we know Ruby does not really do a good job at it (at least for me, even with all the tweaks in the world) and I need to find a good way to kill a process and restart since we are running in a memory-constrained environment. What are you using currently? Monit, OobGC? The good thing about the gem above is that it will kill the Unicorn worker only after the last requests has been performed and with easy adjustable thresholds. Can you point me into the right direction here? Thanks! _______________________________________________ Rainbows! mailing list - rainbows-talk-GrnCvJ7WPxnNLxjTenLetw@public.gmane.org http://rubyforge.org/mailman/listinfo/rainbows-talk Do not quote signatures (like this one) or top post when replying