R14 - Memory Quota Exceeded
メモリ使用量が上限を超えた時の
Heroku Error Code
https://devcenter.heroku.com/articles/error-codes#r14-memory-quota-exceeded
これが続くと
dyno
が再起動される
どれぐらい続くと再起動するのかは不明
R15 - Memory Quota Vastly Exceeded
も参照
超えた分はswapからアロケートされる
swapを使うとアプリケーションの性能は落ちる:
https://devcenter.heroku.com/articles/dynos#memory-behavior
or
https://devcenter.heroku.com/articles/ruby-memory-use#why-memory-errors-matter