unicorn Ruby/Rack server user+dev discussion/patches/pulls/bugs/help
 help / color / mirror / code / Atom feed
From: Eric Wong <normalperson@yhbt.net>
To: unicorn list <mongrel-unicorn@rubyforge.org>
Cc: Kamil Kukura <kamil.kukura@gmail.com>
Subject: Re: Workers getting broken after some time
Date: Tue, 6 Sep 2011 12:39:23 -0700	[thread overview]
Message-ID: <20110906193923.GA3998@dcvr.yhbt.net> (raw)
In-Reply-To: <j458vp$756$1@dough.gmane.org>

Kamil Kukura <kamil.kukura@gmail.com> wrote:
> I have strange error that happens after couple of hours. Some
> instances start to respond on any request with status code 500. Log
> file unicorn.stderr.log gets populated with this error:

>From the backtrace, it looks like an application error of some sort.
Unicorn itself never changes the application once it's loaded.
Does an external service your application relies on get overloaded?

This is a hunch: perhaps your Rails application is opening
connections to a backend and not closing them explicitly (maybe in an
error-handling path).

> Application is running on rails 2.3.14/ruby 1.9.2p290 and maybe it
> has something to do with plugin being used, that is
> template_streaming (https://github.com/oggy/template_streaming)

What happens when you disable the template_streaming?

Streaming isn't likely to help with nginx in front right now (disabling
proxy_buffering in nginx is dangerous to unicorn).

-- 
Eric Wong
_______________________________________________
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


      reply	other threads:[~2011-09-06 20:20 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-09-06 13:59 Workers getting broken after some time Kamil Kukura
2011-09-06 19:39 ` Eric Wong [this message]

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=20110906193923.GA3998@dcvr.yhbt.net \
    --to=normalperson@yhbt.net \
    --cc=kamil.kukura@gmail.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).