# Rails application mysteriously takes a big chunk of memory

**URL:** <https://www.ruby-forum.com/t/rails-application-mysteriously-takes-a-big-chunk-of-memory/171150>\
**Category:** Rails\
**Created:** [June 27, 2009, 1:41am UTC](https://www.ruby-forum.com/t/rails-application-mysteriously-takes-a-big-chunk-of-memory/171150 "2009-06-27T01:41:23Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Developer\_In\_London](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/a4c791/32.png) [@Developer\_In\_London](https://www.ruby-forum.com/u/Developer_In_London)\
**Post date:** [June 27, 2009, 1:41am UTC](https://www.ruby-forum.com/t/rails-application-mysteriously-takes-a-big-chunk-of-memory/171150/1 "2009-06-27T01:41:23Z")

</div>

I seem to be getting a problem where my rails application seems to be  
leaking memory when I load a page. It starts off at about 737mb free.  
After  
I load my page it comes to about 603 mb free. When I restart the thin  
server  
the memory is restored, but thin does complain that it is waiting for a  
process to finish before killing the service and starting it.

Any ideas how I can go about finding where the leak is and fix it?

thanks

nayeem

---

<div class="post-metadata">

**Author:** ![Developer\_In\_London](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/a4c791/32.png) [@Developer\_In\_London](https://www.ruby-forum.com/u/Developer_In_London)\
**Post date:** [June 29, 2009, 2:38pm UTC](https://www.ruby-forum.com/t/rails-application-mysteriously-takes-a-big-chunk-of-memory/171150/2 "2009-06-29T14:38:13Z")

</div>

Check for bad database queries that take a long time to execute and  
load more junk than you need.

On Jun 27, 4:35 am, Developer In London [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)
