Heroku RubyOnRail 应用程序的高内存使用率

High Memory Usage on Heroku RubyOnRail App

我正在使用 Heroku 部署我的 RubyOnRail 应用程序,并使用 Spree CMS 就像在图片中一样,我的内存使用率非常高,但非常低 requests/min。不知道这里发生了什么。有人可以给我一个建议吗?

来自docs

We have found that the 1X and 2X dynos do not perform at a production-ready efficiency for a Spree store. Although some stores will work fine on the 2X dynos, if you’re having speed problems we recommend running on the PX (“performance”) dynos only.

也就是说:Heroku Hobby dyno 只有 512MB,低于此应用程序的硬件要求。他们推荐 运行 PX dynos 至少有 2.5GB 内存。