From: "Jesús Gabriel y Galán" Date: 2010-09-24T17:43:59+09:00 Subject: Re: how do i force ruby to release memory On Fri, Sep 24, 2010 at 10:31 AM, Amit Tomar wrote: > Robert Klemme wrote: >> On Fri, Sep 24, 2010 at 7:36 AM, Amit Tomar >> wrote: >> >>> ? ? ? ? I would like to know is there any way to ask ruby to release >>> memory. >> >> There isn't. >> >>> because for me its not happening automatically..garbase collection >> >> How do you know?  How do you know that Ruby is the cause and not an >> application code memory leak? >> >> Cheers >> >> robert > > Are you saying my appliaction causing memory leak.. > or if it is so how do i tell my application to free memory.. > is there any specific way to do it The Garbage Collector collects garbage, meaning objects which are not referenced anymore. If you are keeping references to objects, those objects will never be garbage collected. In order to fix this, you have to identify which objects you think should be garbage collected but aren't, and then checking which references to those objects are keeping them from being freed. Then fix the code. If you have a piece of code that shows the issue we might be able to help. Jesus.