简体   繁体   中英

Memory leak after upgrade Rails 5.2 to 6.0.0

Has anyone experienced this? We upgraded a project from Rails 5.2 to Rails 6.0.0 and after this, the memory consumption skyrocketed... In the release candidate environment, it works fine, but in production, the container dies because of the memory usage... The instances we have in 5.2 can do just fine with 1GB RAM, but the instances we test for Rails 6.0.0 dies immediately, even if we give them 4GB ram.

We already tested https://github.com/schneems/derailed_benchmarks , but the require gems just increased like 10 MiB in total.

We have some heavy queries but we don't know why this happens in Rails 6 and not in Rails 5.

This hugely depends on what gems you have. Also, I would start by making use of a monitoring tool like Scout or NewRelic to understand where/how is the leak happening.

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