简体   繁体   中英

after some time delayed_job is taking more memory in ruby on rails

Delayed is taking more memory after some time. If we restart it, it will come back to form and again after some time it will take more memory. Can anyone please clarify the reason?

Its probably a memory leak or that it is allocationg more and more memory.

I would suggest not having a very long working job. Instead make a job that goes over all the subbjobs that will be executed an start a job for each of those. Here is a great article explaining that principle but using Sidekiq Sidekiq Best Practices but the principle is the same.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM