Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Does Ruby 2.2 Have Memory Issues on Heroku?

Many people experienced issues with memory usage when switching their Rails app from Ruby 2.0 to Ruby 2.1 on Heroku. For example, see Memory usage increase with Ruby 2.1 versus Ruby 2.0 or 1.9. Are these issues resolved with Ruby 2.2?

like image 508
Ari Avatar asked Dec 26 '14 05:12

Ari


2 Answers

I gave Ruby 2.2 a try with Rails 4.2 and the same memory problems that plagued Ruby 2.1 also occurred. I am switching back to Ruby 2.0. Rails 5 will require Ruby 2.2 and higher so I hope someone will find a way to fix this.

like image 61
Pierre Olivier Martel Avatar answered Nov 16 '22 22:11

Pierre Olivier Martel


We tried Ruby 2.2.2 on Heroku's Cedar-14 stack, 2X dynos, even reducing Unicorn workers from 5 to 3, and still had memory hover near the 1GB maximum within a few hours of moderate web traffic, and swap size jumped to 200MB - 300MB.

like image 6
jpw Avatar answered Nov 16 '22 23:11

jpw