[Boulder Ruby Group] rails/ruby memory leak

Tony Arcieri tony at clickcaster.com
Sun Sep 30 17:56:06 EDT 2007


Are you using ObjectSpace to track leaks?

At one point Evan Weaver had a graph of an ObjectSpace profiler versus one
he wrote using direct heap instrumentation in C, and the ObjectSpace version
gave the appearance of phantom leaks which really weren't there...

Have you tried Bleak House?

http://blog.evanweaver.com/articles/2007/09/25/bleak_house-3-tells-you-your-leaks/

On 9/30/07, ara.t.howard <ara.t.howard at gmail.com> wrote:
>
>
> hi all
>
> i've been chasing my tail on a tiny memory leak for a few days.  i
> isolated the cause to what amounts to a rails project with database
> sessions enabled.  now i'm not sure that the leak is in rails, in fact
> i think it's in ruby's cgi/session.rb but i want to gather a few data
> points to confirm the leak i'm seeing.  if you have a little time,
> check out
>
>    http://drawohara.tumblr.com/post/13655303
>
> or just grab the project from
>
>    http://s3.amazonaws.com/drawohara.com.downloads/leak.tgz
>
> and get it running on your box.  it should be *very* quick to do if
> you have sqlite3 installed.  running it is also easy, but seeing the
> leak can take a bit of time - 30 minutes to 6 hours depending on how
> fast your box can hammer ./script/server.  anyhow, people can report
> here or to me directly.  i'll summarize my findings and, if there is
> in fact a leak in either ruby or rails - follow up with a bug report.
>
> kind regards.
>
> a @ http://drawohara.com/
> --
> we can deny everything, except that we have the possibility of being
> better. simply reflect on that.
> h.h. the 14th dalai lama
>
>
>
> _______________________________________________
> Bdrg-members mailing list
> Bdrg-members at rubyforge.org
> http://rubyforge.org/mailman/listinfo/bdrg-members
>



-- 
Tony Arcieri
ClickCaster, Inc.
tony at clickcaster.com
720-227-0129 ext. 202
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://rubyforge.org/pipermail/bdrg-members/attachments/20070930/25037677/attachment.html 


More information about the Bdrg-members mailing list