Any reasons to run or not run Jemalloc on Heroku?
https://egghead.io uses it.
Here are a few links
- Taming Rails memory bloat | Mike Perham
I’m convinced that tuning glibc is a no brainer. Set MALLOC_ARENA_MAX=2 everywhere you start Sidekiq and enjoy your extra memory. Using jemalloc is more complex. Memory bloat has been a serious issue in large scale Rails apps as far back as I can remember in Ruby. I wish ruby-core would pull in jemalloc as the default allocator but they seem content with glibc.
- Malloc Can Double Multi-threaded Ruby Program Memory Usage
The potential memory savings here are so great and the penalties so minor that I would recommend that if you are using Ruby and Puma or Sidekiq in production, you should always use jemalloc.
- Reduce Rails Memory Usage, Fix Leaks, R14, Save Money on Heroku [4 Tips]
- https://www.levups.com/en/blog/2017/optimize_ruby_memory_usage_jemalloc_heroku_scalingo.html