From: Marcin Raczkowski Date: 2008-01-24T17:07:29+09:00 Subject: Re: DRb cleaning up client objects created by clients Aaron Turner wrote: > On Jan 23, 2008 9:48 PM, Marcin Raczkowski wrote: >> It's problem with both GC and DRb. >> >> finilizer will never be run becouse it's run just before object is >> collected - since DRb is not releasing reference it's newer collected. > > That tends to agree with my research > >> try using object proxy (delegator) > > Sorry not familiar with the module, concept or whatever you're > referring to. Link? > > Thanks, > Aaron > On server side you define empty object that ovverwrites method_missing and every call is transported to coresponding "real" object. It's ugly hack, becouse proxy objects will never be collected unless issue is fixed in DRb, but that should help with memory usage (almost empty objects should not be really memory consuming) and you can menage all the references server side. If you are looking for better solution check packet and EventMachine, BackgroundRB recently switched to Packet becouse of DRb issues. cheers