Displaying 1 result from an estimated 1 matches for "resize_all".
2006 Aug 07
4
Memory leak?
...s an engine plugin. Then, I
have it perform this upon acceptance:
MiddleMan.new_worker :class => :resize_worker, :args => self.id
And here are the contents of ResizeWorker:
class ResizeWorker < BackgrounDRb::Rails
def do_work(args)
image = Image.find(args)
image.resize_all
terminate
end
end
If I run this on a few dozen images simultaneously I watch as top
starts slowly requiring more memory for backgroundrb. Dropping into
script/console tells me two things.
For one, MiddleMan.jobs still has every job, despite my terminate()
call. Second, calling des...