Developer In London
2009-Jun-26 23:35 UTC
rails application mysteriously takes a big chunk of memory
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 --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en -~----------~----~----~----~------~----~------~--~---
Mukund
2009-Jun-29 12:37 UTC
Re: rails application mysteriously takes a big chunk of memory
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 <ebilliona...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> 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