ankane/production_rails

(Suggestion) Compile Ruby with jemalloc to get better memory perf than glibc's malloc

abevoelker opened this issue · 2 comments

Using jemalloc (supposedly) results in lower overall memory usage and lower fragmentation than the standard glibc malloc you get by default when running Ruby on Linux: https://www.levups.com/en/blog/2017/optimize_ruby_memory_usage_jemalloc_heroku_scalingo.html

Hey @abevoelker, thanks for sharing 👍 I hadn't heard of this before (or obviously tried it) in a production environment, so not comfortable adding it as a recommendation right now, but it's an interesting idea.

Fair enough ✌️ Thanks for the guide and all the useful gems!