From: Eric Wong <e@80x24.org>
To: Tony Devlin <tonydevlin@gmail.com>
Cc: unicorn-public@bogomips.org
Subject: Re: Weird Unicorn Timeout Issues (Hibernation problem?)
Date: Mon, 4 Aug 2014 19:11:58 +0000 [thread overview]
Message-ID: <20140804191158.GB10070@dcvr.yhbt.net> (raw)
In-Reply-To: <CAKM1sPPgzOt0aiPEw4SmRAgKOKGVKffnWu12aFDHXQ-zmSeMqA@mail.gmail.com>
Tony Devlin <tonydevlin@gmail.com> 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
next prev parent reply other threads:[~2014-08-04 19:11 UTC|newest]
Thread overview: 18+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-08-04 18:12 Weird Unicorn Timeout Issues (Hibernation problem?) Tony Devlin
2014-08-04 18:39 ` Eric Wong
2014-08-04 18:41 ` Kapil Israni
2014-08-04 18:48 ` Eric Wong
2014-08-04 18:45 ` Tony Devlin
2014-08-04 19:11 ` Eric Wong [this message]
2014-08-04 19:21 ` Tony Devlin
2014-08-04 19:45 ` Eric Wong
2014-08-04 20:06 ` Michael Fischer
2014-08-04 18:55 ` Daniel Condomitti
2014-08-04 19:34 ` Eric Wong
2014-08-04 20:24 ` Tony Devlin
2014-08-04 20:44 ` Eric Wong
2014-08-04 20:46 ` Eric Wong
2014-08-05 14:46 ` Tony Devlin
2014-08-06 9:45 ` Eric Wong
2014-08-06 14:05 ` Tony Devlin
2014-08-06 18:26 ` Daniel Condomitti
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=20140804191158.GB10070@dcvr.yhbt.net \
--to=e@80x24.org \
--cc=tonydevlin@gmail.com \
--cc=unicorn-public@bogomips.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).