开发者

rails delayed_job memory consumption problem

开发者 https://www.devze.com 2023-01-21 03:44 出处:网络
We\'re having huge problems with the delayed_job plugin - http://github.com/collectiveidea/delayed_job/

We're having huge problems with the delayed_job plugin - http://github.com/collectiveidea/delayed_job/

When we start tasks with "ruby script/delayed_job start", the process never lets go of RAM it acquires.

So it starts with 10%, 25%, gets to 80% and never lets go of the ram, 开发者_如何学Pythoneven if it has no jobs to process.

Any ideas how we can get over this?

Thanks!

(PS: RAILS_ENV=production script/delayed_job start didn't work for us to start the delayed_job worker)


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

So the only solution I know of right now is to manually restart the delayed_job plugin every now and then.

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

0

精彩评论

暂无评论...
验证码 换一张
取 消