Autokill Workers which have grown too big
Eric Wong
normalperson at yhbt.net
Fri Jul 30 18:06:15 EDT 2010
hukl <hukl at 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
More information about the mongrel-unicorn
mailing list