Problem with memory latency in delays

We have big problems with the delayed_job plugin - http://github.com/collectiveidea/delayed_job/

When we run tasks with "ruby script / delayed_job start", this process never releases the RAM that it acquires.

So, it starts with 10%, 25%, reaches 80% and never releases RAM, even if it has no jobs to process.

Any ideas how we can overcome this?

Thanks!

(PS: RAILS_ENV = production script / delayed_job start did not work for us to start the delayed_job worker)

+6
ruby-on-rails delayed-job
source share
1 answer

Based on an IRC recommendation (from @ReinH), Ruby will never free up memory back to the OS.

So, the only thing I know now is to manually restart the delayed_job plugin from time to time.

@ReinH also pointed out the delayed_job_spawner plugin, which seems to be another plausible solution - http://github.com/woahdae/delayed_job_spawner

+2
source share

All Articles