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: X-Spam-Status: No, score=-2.0 required=3.0 tests=ALL_TRUSTED,AWL,BAYES_00, URIBL_BLOCKED shortcircuit=no autolearn=unavailable version=3.3.2 X-Original-To: unicorn-public@bogomips.org Received: from localhost (dcvr.yhbt.net [127.0.0.1]) by dcvr.yhbt.net (Postfix) with ESMTP id 3F4651FB36; Mon, 4 Aug 2014 19:11:58 +0000 (UTC) Date: Mon, 4 Aug 2014 19:11:58 +0000 From: Eric Wong To: Tony Devlin Cc: unicorn-public@bogomips.org Subject: Re: Weird Unicorn Timeout Issues (Hibernation problem?) Message-ID: <20140804191158.GB10070@dcvr.yhbt.net> References: <20140804183923.GA8732@dcvr.yhbt.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: List-Id: Tony Devlin wrote: > Eric, > > Thank you for responding. We use a database on only one of the apps, it is > a Oracle 11G RAC Server. I'll get the DBA to double check the idle timeout > for that DB. Though the other app does not use a database. OK. Does the other app connect to any other external services? If you're not sure, you can check with: lsof -p $WORKER_PID Do lsof once a worker has had a few requests served, as some libraries lazily open connections. I suggest debugging problems on an instance with only one worker to make reproducing the problem easier. There should be a general query timeout for all DB/external connections: http://unicorn.bogomips.org/Application_Timeouts.html I haven't been able to reproduce the issue on a hello-world app with no external dependencies: $ unicorn -E none -c unicorn.conf.rb ---------- unicorn.conf.rb ---------- timeout 20 ------------ config.ru -------------- require 'rack/lobster' use Rack::ContentLength run Rack::Lobster.new -- EW