# Memory leak? shows up in mongrel, not webrick

**URL:** <https://www.ruby-forum.com/t/memory-leak-shows-up-in-mongrel-not-webrick/148793>\
**Category:** Rails\
**Created:** [September 17, 2008, 5:33am UTC](https://www.ruby-forum.com/t/memory-leak-shows-up-in-mongrel-not-webrick/148793 "2008-09-17T05:33:52Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![danblaker](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/e274bd/32.png) [@danblaker](https://www.ruby-forum.com/u/danblaker)\
**Post date:** [September 17, 2008, 5:33am UTC](https://www.ruby-forum.com/t/memory-leak-shows-up-in-mongrel-not-webrick/148793/1 "2008-09-17T05:33:52Z")

</div>

I’ve got an app that iterates through an array of 1000+ ActiveRecords  
in order to support quick AJAX filtering. When the app is running on  
mongrel(s), this process makes the RAM usage go through the roof  
(i.e., adding 50MB per iteration) and the usage never goes back down.  
Running on webrick, the app stabilizes at around 70MB and never goes  
higher no matter how many times I iterate through that array.

I’ve been unable to install the bleak\_house gem on my dev machine  
(running OS X Leopard). My other attempts to profile the RAM have  
been fruitless so far. Any ideas? Perhaps I’m not releasing the AR  
objects correctly? I am a Ruby/Rails newbie.

Thanks,

DGB
