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>
Subject: Re: Autokill Workers which have grown too big
Date: Fri, 30 Jul 2010 15:06:15 -0700	[thread overview]
Message-ID: <20100730220615.GA16267@dcvr.yhbt.net> (raw)
In-Reply-To: <4C52DD93.1090900@berlin.ccc.de>

hukl <hukl@berlin.ccc.de> wrote:
> Also I'd like to know if there is a way to get the current memory  
> footprint of a worker other than something like:
>
> %x(ps -o rss= -p #{Process.pid}).to_i

Hi John,

I know under Linux it's possible to parse /proc/$$/stat and also
(the bigger, but more human-readable) /proc/$$/status to get
current memory usage.

There's also the sys-proctable gem, too, which I haven't used.

-- 
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:[~2010-07-30 23:09 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2010-07-30 14:11 Autokill Workers which have grown too big hukl
2010-07-30 22:06 ` Eric Wong [this message]
2010-07-30 22:32 ` Florian Hanke

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=20100730220615.GA16267@dcvr.yhbt.net \
    --to=normalperson@yhbt.net \
    --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).