# Memory allocation reporting?

**URL:** <https://www.ruby-forum.com/t/memory-allocation-reporting/132776>\
**Category:** Ruby\
**Created:** [March 24, 2008, 5:23pm UTC](https://www.ruby-forum.com/t/memory-allocation-reporting/132776 "2008-03-24T17:23:46Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![joeymarchy](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/5fc32e/32.png) [@joeymarchy](https://www.ruby-forum.com/u/joeymarchy)\
**Post date:** [March 24, 2008, 5:23pm UTC](https://www.ruby-forum.com/t/memory-allocation-reporting/132776/1 "2008-03-24T17:23:46Z")

</div>

I created a script that using up alot of memory very quickly. All the  
resources like file handles, db results, and objects are being freed. I  
am  
using a third party library so I am wondering if the problem lies with  
their  
code.  
My question is what would I use to make a report showing how much memory  
is  
being allocated by which objects, methods and variables. I remember a  
professor doing something like this with run times in c++ with the gcc  
compiler.

---

<div class="post-metadata">

**Author:** ![joeymarchy](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/5fc32e/32.png) [@joeymarchy](https://www.ruby-forum.com/u/joeymarchy)\
**Post date:** [March 24, 2008, 5:42pm UTC](https://www.ruby-forum.com/t/memory-allocation-reporting/132776/2 "2008-03-24T17:42:40Z")

</div>

On Mon, Mar 24, 2008 at 10:22 AM, Joey M. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)  
wrote:

> –  
> Joey M.

You could try Bleakhouse or mem-inspect.

\*\*Disclaimer - I’ve used neither of these gems

–  
“Hey brother Christian with your high and mighty errand, Your actions  
speak  
so loud, I can’t hear a word you’re saying.”

-Greg Graffin (Bad Religion)

---

<div class="post-metadata">

**Author:** ![joeymarchy](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/5fc32e/32.png) [@joeymarchy](https://www.ruby-forum.com/u/joeymarchy)\
**Post date:** [March 25, 2008, 4:14am UTC](https://www.ruby-forum.com/t/memory-allocation-reporting/132776/3 "2008-03-25T04:14:29Z")

</div>

On Mar 24, 2008, at 10:22 AM, Joey M. wrote:

> ## compiler.
> 
> Joey M.

the simplest way to see what’s happening is probably dike

gem install dike

[http://codeforpeople.com/lib/ruby/dike/dike-0.0.4/README](http://codeforpeople.com/lib/ruby/dike/dike-0.0.4/README)

take a snapshot before and after an allocation by the lib the use dike  
to do a diff.

regards.

a @ [http://codeforpeople.com/](http://codeforpeople.com/)
