unicorn Ruby/Rack server user+dev discussion/patches/pulls/bugs/help
 help / Atom feed
From: Luke Melia <luke@lukemelia.com>
To: mongrel-unicorn@rubyforge.org
Subject: Garbage collection outside of request cycle?
Date: Thu, 6 May 2010 16:29:40 -0400
Message-ID: <0BFC98E9-072B-47EE-9A70-05478C20141B@lukemelia.com> (raw)

I've been analyzing our Unicorn-powered Rails app's performance, and have found that garbage collection is a big factor in slow requests.

In the interest of avoiding those performance hits while handling requests, would it be possible to have a unicorn worker run garbage collection after handling a request and before waiting for the next one? Would this be a good idea?

Cheers,
Luke
_______________________________________________
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 index

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-05-06 20:29 Luke Melia [this message]
2010-05-06 20:57 ` Eric Wong
2010-05-06 21:12   ` Eric Wong
2010-05-06 23:17   ` Luke Melia
2010-05-13 20:29     ` Luke Melia
2010-05-14 19:02       ` Eric Wong

Reply instructions:

You may reply publically 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://bogomips.org/unicorn/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=0BFC98E9-072B-47EE-9A70-05478C20141B@lukemelia.com \
    --to=luke@lukemelia.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

unicorn Ruby/Rack server user+dev discussion/patches/pulls/bugs/help

Archives are clonable:
	git clone --mirror https://bogomips.org/unicorn-public
	git clone --mirror http://ou63pmih66umazou.onion/unicorn-public

Newsgroups are available over NNTP:
	nntp://news.public-inbox.org/inbox.comp.lang.ruby.unicorn
	nntp://ou63pmih66umazou.onion/inbox.comp.lang.ruby.unicorn

 note: .onion URLs require Tor: https://www.torproject.org/
       or Tor2web: https://www.tor2web.org/

AGPL code for this site: git clone https://public-inbox.org/ public-inbox