Memory usage increase with Ruby 2.1 versus Ruby 2.0 or 1.9

前端 未结 2 1227
醉酒成梦
醉酒成梦 2021-02-05 12:20

I recently deployed an upgrade of Ruby from 2.0 to 2.1.5 to my Heroku web application, and I am consistently hitting memory quota errors now, whereas with 2.0 and 1.9 this never

2条回答
  •  情深已故
    2021-02-05 12:57

    So the answer is clearly upgrade to Ruby version 2.2.

    I am impressed to see that memory usage has actually gone down following the upgrade to 2.2, whereas upgrading to 2.1 was a huge increase in memory consumption. See the graph below.

    Memory usage with 2.2

    On the far left memory consumption on 2.0 sits at around 386mb when under load, whereas with 2.2 it now sits at around 365mb.

提交回复
热议问题