From: Jonathan Nielsen Date: 2010-05-15T02:22:36+09:00 Subject: Re: Memory leak in Rails apps On Fri, May 14, 2010 at 9:19 AM, Manivannanj Jeganathan wrote: > Kindly tell me how to call garbage collection manually or any other > ideas are also welcome.... > > Thanks.... You may start garbage collection manually in Ruby by calling GC.start, however on a production server it may be a good idea to restart your server every so often (there are things that the garbage collector does not collect, like symbols for instance). Deployment products like Passenger have methods for automatically restarting a server process after a certain amount of time or number of requests, you may want to look into that. -Jonathan Nielsen